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 freeResolve an OKX internal chain id to its canonical chain id
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | query | str | required | 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"