GET /priapi/v1/wallet/chain/getRealChainId

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

Resolve an OKX internal chain id to its canonical chain id

Parameters

nameintypedescription
chainIdquerystrrequired
example: 1

Response

type: string
pagination: none
sample: {
  "data": "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/getRealChainId?chainId=1"