Prices
The Prices API provides real-time cryptocurrency price data and conversion between fiat and crypto amounts. Prices are sourced via the BPC service. This is a public API, no authentication required.
Get price or convert
GET
/pricesUnified endpoint for spot prices and fiat↔token conversion. Pass asset as a tokenKey (preferred, e.g. SUI-202, USDC-137), a symbol (e.g. ETH), or contract-chain (e.g. 0xa0b8...-1).
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
asset | string | Yes | Token key, symbol, or contract-chain identifier |
currency | string | No | Fiat currency code (default: "USD"). Supports USD and EUR. |
amountFiat | number | No | Fiat amount to convert to crypto |
tokenAmount | number | No | Token amount to convert to fiat |
💡
Conversion
Omit
amountFiat and tokenAmount for a spot price only. Provide one of them for conversion in the corresponding direction.Response
Response fields
assetstringResolved asset identifiersymbolstringToken symbol (e.g. ETH, USDC)currencystringFiat currency for the quotepriceFiatnumberCurrent token price in the selected fiat currencycachedAtstringISO 8601 timestamp when the price was cachedamountFiatnumberFiat amount (when converting)tokenAmountstringToken amount (when converting)Wallet balance
GET
/balanceReturns on-chain wallet balance for a token on a supported chain. Balances are fetched via BPC — no direct chain RPC from the browser is required.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | number | Yes | NodeRails chain ID |
address | string | Yes | Wallet address (EVM hex, Solana base58, Sui address) |
token | string | No | native, contract/mint address, or Sui coin type |
tokenKey | string | No | Resolve token from registry when token is omitted |
includePrice | boolean | No | Attach fiat value (true / false) |
currency | string | No | Fiat currency for value (default: USD) |
Batch balances
POST
/balance/batchFetch up to 50 wallet balances in one request.