POST /priapi/v1/dx/trade/bridge/v3/quote
Auth X-Hub-Key from API_HUB_KEYExecute
POST /run/web3okx/priapi/v1/dx/trade/bridge/v3/quoteCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing freeRead-only cross-chain bridge quote
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | query | str | required | example: 1 |
toChainId | query | str | required | example: 10 |
fromTokenAddress | query | str | required | example: 0x0000000000000000000000000000000000000000 |
toTokenAddress | query | str | required | example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 |
amount | query | str | required | example: 1000000000000000000 |
Response
type: object
data key: pathSelectionRouterList
pagination: none
sample: {
"commonDexInfo": "object",
"intentCode": "str",
"pathSelectionRouterList": "array[0]",
"pushId": "str",
"requestId": "str",
"singleChainSwapInfo": "null",
"state": "int",
"swapType": "str"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
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"}'