OKX On-chain

OKX coverage on this hub spans OKX Wallet, OKX Web3 and On-chain RPC. This page groups every executable OKX route by what it does, not by which of those three it happens to come from — the provider each route runs through is noted on the route itself, but never required to find it. Every route here is a read-only GET or an explicitly read-only POST.

Wallet address

NFTs by public address
Collected NFTs for a public address
Read-only POST · via OKX Wallet · executed live on every call — a read-only POST answer is never cached
curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v1/nft/wallet/plugin/queryCollectedNfts" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "chainId": "1", "pageNo": 1, "pageSize": 20}'
Owned NFT list for a public address
Read-only POST · via OKX Wallet · executed live on every call — a read-only POST answer is never cached
curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v1/nft/wallet/plugin/owned/nft-list" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "chainId": "1", "pageNo": 1, "pageSize": 20}'
Supported chains for wallet NFT holdings queries
Read-only GET · via OKX Wallet · cached 300s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/nft/wallet/plugin/chains"
Check whether an address holds owned or hidden NFTs on a chain
Read-only POST · via OKX Wallet · executed live on every call — a read-only POST answer is never cached
curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v1/nft/wallet/plugin/owned/exist" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "chainId": "1"}'
Gas prices
Gas prices across supported chains
Read-only GET · via OKX Wallet · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/gas/tracker/multi-gas-price?chainId=1"
Supported chains in the OKX Wallet gas tracker
Read-only GET · via OKX Wallet · cached 300s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/gas/tracker/chains"
Multi-chain wallet network metadata and block explorers
Read-only GET · via OKX Wallet · cached 300s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/web/chain/info"
Resolve an OKX internal chain id to its canonical chain id
Read-only GET · via OKX Wallet · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/chain/getRealChainId?chainId=1"
Batch-resolve OKX internal chain ids to canonical chain ids
Read-only GET · via OKX Wallet · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/chain/getRealChainIdBatch?chainIds=1%2C56%2C137%2C42161%2C8453"
MEV protection RPC providers and priority settings per chain
Read-only GET · via OKX Wallet · cached 300s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/mev/list"
Supported wallet testnet networks and RPC endpoints
Read-only GET · via OKX Wallet · cached 300s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/network/test-networks"
Token and coin metadata
Public coin metadata
Read-only POST · via OKX Wallet · executed live on every call — a read-only POST answer is never cached
curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/common/coinSingle" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"coinId": "3"}'
Coin metadata
Read-only GET · via OKX Wallet · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/coin/info?coinId=3"
Whether a coin's displayed value changes dynamically
Read-only GET · via OKX Wallet · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/coin/checkIsDynamicByTokenCoinId?coinId=3"
Paginated wallet coin and token catalog for a chain
Read-only POST · via OKX Wallet · executed live on every call — a read-only POST answer is never cached
curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/common/coinByPageV2" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"chainId": 1, "pageIndex": 1, "pageSize": 10}'
Native token balance per chain
Chain catalogue for wallet profile feature; includes native-balance support flag per chain
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/support-chains"
Chains where an address is indexed by OKX; first step in the two-call native-balance workflow
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/all-chains?walletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
OKX DEX PnL per indexed chain for an address
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/chain-pnl?periodType=1&walletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
OKX DEX trade list for an address on a single chain; empty for most addresses
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/query/address/info?chainId=1&walletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Native token balance (amount and USD value) plus DEX PnL summary for an address on one chain
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/summary?periodType=1&chainId=1&walletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"

Native token balance — amount and USD value per indexed chain — is available here through OKX Web3: call wallet-profile/all-chains to find which chains hold the address, then wallet-profile/summary once per chain for the native token balance on that chain. ERC-20 token holdings, transaction history, and total portfolio value are not available from this surface; the routes below serve them.

Need balances instead?
Token balances across all (or selected) chains in one call
Read-only GET · via DeBank · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/debank/portfolio/all_token_list?user_id=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&chain_ids=eth%2Cbsc"
Address summary (balance, txCount, type)
Read-only GET · via OKLink · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/oklink/api/explorer/v2/eth/addresses/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045?needBigField=true"

On-chain RPC can also read a chain's native balance directly: POST /rpc/{chain} with method eth_getBalance — see On-chain RPC.

Swap and bridge quotes

The intent swap quote is cached for a few seconds and never served stale past that window; the bridge quote is a read-only POST that is never cached at all — both facts are called out on the route itself below.

Public intent swap quote
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/intent/quote?userWalletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&chainId=1&fromTokenAddress=0x0000000000000000000000000000000000000000&toTokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&amount=1000000000000000000"
Read-only cross-chain bridge quote
Read-only POST · via OKX Web3 · executed live on every call — a read-only POST answer is never cached
curl -sX POST "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/bridge/v3/quote" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"chainId": "1", "toChainId": "10", "fromTokenAddress": "0x0000000000000000000000000000000000000000", "toTokenAddress": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "amount": "1000000000000000000"}'

Liquidity and routing

Available liquidity venues
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/multi/liquidityList?chainId=1"
Dapps supporting a token swap
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/public/swap/chain/dapp-list?chainId=1&tokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Dapps supporting a token pair
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/public/swap/chain/ca-dapp-list?fromChainId=1&toChainId=1&fromTokenAddress=0x0000000000000000000000000000000000000000&toTokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Supported DeFi aggregator platforms
Read-only GET · via OKX Web3 · cached 300s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/multi/defiPlatform-list"
Intent swap solver venues
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v6/dx/trade/multi/intent/solverConfig"
Supported swap chains
Read-only GET · via OKX Web3 · cached 300s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/public/swap/chain/list"
Bridge-supported chains
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/bridge/supportChain/list?businessLine=1"

Token analysis

Pools for a token
Read-only GET · via OKX Web3 · cached 5s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/pool/list?chainId=1&tokenContractAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Token overview
Read-only GET · via OKX Web3 · cached 15s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/token/overview?chainId=1&tokenContractAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Latest token market information
Read-only GET · via OKX Web3 · cached 3s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/latest/info?chainId=1&tokenContractAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Token contract and trading risk analysis
Read-only GET · via OKX Web3 · cached 60s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/risk/new/check?chainId=1&tokenContractAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Token holder ranking
Read-only GET · via OKX Web3 · cached 15s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/holders/ranking-list?chainId=1&tokenAddress=0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE"
Holder concentration cluster analysis
Read-only GET · via OKX Web3 · cached 30s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/holder-intelligence/cluster/info?chainId=1&tokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Token tradability and risk check
Read-only GET · via OKX Web3 · cached 1s, never served stale past that window
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/toastTokenCheck?chainId=1&tokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"

Raw chain reads

On-chain RPC
153 chains · 213 safe read methods

Allowlisted read-only JSON-RPC/REST across chain families — see On-chain RPC for the full method browser.