Skip to content
NAVIDocs
Open app
Skip to Content

NAVI API

Look up HTTP requests and example responses for markets, packages, fees, flash loans, oracle configuration and rewards.

All routes below use GET. Response excerpts show selected fields. Start with the working pools example.

Lending pools

Read current reserve configuration, balances, rate indexes and supply or borrow incentives.

Request

curl --fail --show-error "https://open-api.naviprotocol.io/api/navi/pools"

Response

The data array contains reserve records. Match the full coin type or reserve ID. ltvValue is a decimal fraction. Rate factors and raw caps use 27-decimal scaling. token.decimals describes the underlying coin.

{
  "code": 0,
  "data": [
    {
      "id": 0,
      "suiCoinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI",
      "ltvValue": 0.75,
      "supplyCapCeiling": "5.5e+34",
      "borrowCapCeiling": "960000000000000000000000000",
      "currentSupplyIndex": "1100865744339793736666259652",
      "currentBorrowIndex": "1249947120865782647764717031",
      "token": {
        "symbol": "SUI",
        "decimals": 9
      }
    }
  ]
}

Package IDs

Resolve the lending package before constructing a transaction.

Request

curl --fail --show-error "https://open-api.naviprotocol.io/api/package"

Response

The response has a top-level packageId and an outdated array of versioned packages. Read the endpoint at integration time.

{
  "packageId": "0x512f28261c1a293f49416d8885b8d5d32bde6dd68a99a0be36fe42b248e6833a",
  "outdated": [
    {
      "packageId": "0xee0041239b89564ce870a7dec5ddc5d114367ab94a1137e90aa0633cb76518e0",
      "version": 21
    }
  ]
}

Contract configuration

Look up reserve, oracle and flash loan configuration by coin type.

Request

curl --fail --show-error "https://open-api.naviprotocol.io/api/navi/contract/configs"

Response

Each item in data includes reserve_data, price_feed and flash_loan_config. The API spells its symbol field symbal.

{
  "code": 0,
  "data": [
    {
      "coin_type": "0x44f838219cf67b058f3b37907b655f226153c18e33dfcd0da559a844fea9b1c1::usdsui::USDSUI",
      "symbal": "USDSUI",
      "reserve_data": {
        "id": 34,
        "ltv": "75%",
        "supply_cap_ceiling": "15,000,000",
        "borrow_cap_ceiling": "92%"
      }
    }
  ]
}

Fees and revenue

Request fees and revenue for a 24-hour interval.

Request

curl --fail --show-error "https://open-api.naviprotocol.io/api/navi/fee?fromTimestamp=1732587539"

Response

Pass a Unix timestamp in seconds as fromTimestamp. The documented data object contains from, to, flashLoanRevenue, borrowInterestRevenue, borrowInterestFee, borrowRevenue and naviDailyRevenue. The following excerpt is from the historical reference.

{
  "code": 0,
  "data": {
    "from": 1732587539,
    "to": 1732673939,
    "flashLoanRevenue": 47.8772023048398,
    "naviDailyRevenue": 17149.6057229954
  }
}

Flash loan configuration

Read supported assets, size limits and fee rates.

Request

curl --fail --show-error "https://open-api.naviprotocol.io/api/navi/flashloan"

Response

The data object is keyed by coin type. min and max use the token’s smallest units. The record includes a reserve ID, pool ID and fee rates.

{
  "code": 0,
  "data": {
    "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI": {
      "max": "5000000000000000",
      "min": "0",
      "assetId": 0,
      "poolId": "0x96df0fce3c471489f4debaaa762cf960b3d97820bd1f3f025ff8190730e958c5",
      "supplierFee": 0,
      "flashloanFee": 0
    }
  }
}

Oracle configuration

Look up feed identifiers and price validation settings.

Request

curl --fail --show-error "https://open-api.naviprotocol.io/api/navi/oracle"

Response

The data object is keyed by asset symbol. Use its coin type and oracle ID to match the asset. Feed and staleness fields describe the configuration.

{
  "code": 0,
  "data": {
    "SUI": {
      "oracleId": 0,
      "coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI",
      "maxTimestampDiff": 30000
    }
  }
}

Claimed rewards

Request a wallet’s claimed reward history.

Request

curl --fail --show-error "https://open-api.naviprotocol.io/api/navi/user/rewards?userAddress=YOUR_SUI_ADDRESS"

Response

Replace YOUR_SUI_ADDRESS with the public Sui address to query. The historical reference shows reward records with amount, pool, sender, timestamp, coin_type and token_price. Check the live response before consuming its envelope.

Handling errors

Check the HTTP status before parsing JSON. For endpoints with a code field, check it before reading data. A gateway or timeout response can contain text instead of JSON. Retry transient failures with backoff. An unavailable endpoint provides no evidence that the balance, rewards or fee revenue is zero.

On this page