Skip to content
NAVIDocs
Open app
Skip to Content

Get the Latest Package ID

Resolve lending and oracle package IDs and shared objects for a selected market.

Look up the lending package

The package API specification describes the current lending package ID and its history. A historical ID helps identify past transactions. Build new calls with the package selected by the live configuration.

Resolve both packages with the SDK

import { getConfig } from '@naviprotocol/lending';

const config = await getConfig({ market: 'main' });
const lendingPackage = config.package;
const oraclePackage = config.oracle.packageId;

Use lendingPackage for modules such as incentive_v3 and oraclePackage for oracle_pro. The same configuration provides the market's storage, incentiveV2, incentiveV3 and rewardFunds. If your integration targets another market, select that market before resolving any of these objects.

Package IDs can change at an upgrade. See the release history for the transition schedule.

On this page