Skip to content
Docs

Prices

Mainnet-only behavior

Prices are available on mainnet chains only; testnet chain IDs return unsupported_capability.

Overview

Testnet chainId values return unsupported_capability (HTTP 400). Use portfolio priceUsd on mainnet when you already fetch balances.

Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.

CodeHTTPWhen
unsupported_capability400Testnet chain id or feature disabled on testnets (prices, NFTs, DeFi, swap)
json
{
  "error": {
    "code": "unsupported_capability",
    "message": "Human-readable detail (may be sanitized).",
    "retryable": false
  }
}