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
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}'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}'curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/nft/wallet/plugin/chains"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"}'curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/gas/tracker/multi-gas-price?chainId=1"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/gas/tracker/chains"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/web/chain/info"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/chain/getRealChainId?chainId=1"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/chain/getRealChainIdBatch?chainIds=1%2C56%2C137%2C42161%2C8453"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/mev/list"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/network/test-networks"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"}'curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/coin/info?coinId=3"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/coin/checkIsDynamicByTokenCoinId?coinId=3"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}'curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/support-chains"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"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"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"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.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/debank/portfolio/all_token_list?user_id=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&chain_ids=eth%2Cbsc"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.
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"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
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/multi/liquidityList?chainId=1"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"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"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/multi/defiPlatform-list"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v6/dx/trade/multi/intent/solverConfig"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/public/swap/chain/list"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/bridge/supportChain/list?businessLine=1"Token analysis
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/pool/list?chainId=1&tokenContractAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/token/overview?chainId=1&tokenContractAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/latest/info?chainId=1&tokenContractAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"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"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"curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/holder-intelligence/cluster/info?chainId=1&tokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"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
Allowlisted read-only JSON-RPC/REST across chain families — see On-chain RPC for the full method browser.