GET /priapi/v1/wallet/chain/getRealChainIdBatch

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/okxwallet/priapi/v1/wallet/chain/getRealChainIdBatchCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Batch-resolve OKX internal chain ids to canonical chain ids

Parameters

nameintypedescription
chainIdsquerystrrequired
example: 1,56,137,42161,8453

Response

type: object
pagination: none
sample: {
  "1": "str",
  "56": "str",
  "137": "str"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/okxwallet/priapi/v1/wallet/chain/getRealChainIdBatch?chainIds=1%2C56%2C137%2C42161%2C8453"