1ī¸âƒŖGet the Latest Package ID

getPackageId - NAVI API

The getPackageId API is publicly accessible and retrieves the latest package information for the NAVI Protocol. This endpoint provides the current packageId in use, along with a list of outdated package IDs for reference. It helps developers ensure they are working with the most up-to-date package when interacting with NAVI's smart contracts.

getPackageId - NAVI SDK

The getLatestProtocolPackageId function in the NAVI SDK retrieves the most recent packageId used in the NAVI Protocol. This function is essential for PTB developers to ensure they are interacting with the latest version of NAVI’s smart contracts in their JavaScript-based code.

import { getLatestProtocolPackageId } from 'navi-sdk/dist/libs/PoolInfo';

const id = await getLatestProtocolPackageId();

Last updated