POST /v2/fungible/route
Auth X-Hub-Key from API_HUB_KEYExecute
POST /run/skip_go/v2/fungible/routeCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing freeCross-chain route and quote between two assets: ordered transfer/swap operations, amount out, estimated fees, route duration, price impact and required signatures (read-only computation — nothing is built, signed or broadcast)
Logical routing failures (e.g. USD in/out gap with allow_unsafe false) come back as HTTP 400 with a {code,message,details} envelope and are surfaced through SourceResponse.error.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
amount_in | body | str | required | Input amount in the source asset's smallest unit (USDC has 6 decimals, so 100000 = 0.1 USDC) example: 100000 |
source_asset_chain_id | body | str | required | Source chain — Chain identifier exactly as returned by /v2/info/chains: a numeric EVM chain id ('1'), a Cosmos chain-id ('celestia', 'noble-1') or an SVM id. example: 1 |
source_asset_denom | body | str | required | Source asset denom: an EVM contract address, a Cosmos denom ('utia', 'uusdc') or an SVM mint example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
dest_asset_chain_id | body | str | required | Destination chain — Chain identifier exactly as returned by /v2/info/chains: a numeric EVM chain id ('1'), a Cosmos chain-id ('celestia', 'noble-1') or an SVM id. example: celestia |
dest_asset_denom | body | str | required | Destination asset denom (same vocabulary as source) example: utia |
smart_relay | body | bool | optional | Allow relayed routes for chains without a preferred relayer (page default: true) default: Trueexample: True |
allow_multi_tx | body | bool | optional | Allow routes that need more than one transaction default: Trueexample: True |
allow_unsafe | body | bool | optional | Return routes whose quoted USD in/out differ materially (with small placeholder amounts the safe-mode check otherwise fails with BAD_PRICE_ERROR) default: Trueexample: True |
experimental_features | body | list[str] | optional | Bridge implementations to opt into (page sends hyperlane, stargate, eureka, layer_zero) example: ["hyperlane","stargate","eureka","layer_zero"] |
smart_swap_options | body | object | optional | Swap optimization flags example: {"split_routes":true,"evm_swaps":true} |
go_fast | body | bool | optional | Consider Go Fast transfer legs (page sends true) example: True |
fast_transfer | body | bool | optional | Consider fast-transfer legs (page sends true) example: True |
Response
type: object
data key: operations
pagination: none
sample: {
"source_asset_denom": "str",
"source_asset_chain_id": "str",
"dest_asset_denom": "str",
"dest_asset_chain_id": "str",
"amount_in": "str",
"amount_out": "str",
"operations": "array[5]",
"chain_ids": "array[4]",
"does_swap": "bool",
"estimated_amount_out": "str",
"swap_venues": "array[1]",
"txs_required": "int",
"usd_amount_in": "str",
"usd_amount_out": "str",
"warnin
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sX POST "https://openapihub.dev/run/skip_go/v2/fungible/route" \
-H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"amount_in": "100000", "source_asset_chain_id": "1", "source_asset_denom": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "dest_asset_chain_id": "celestia", "dest_asset_denom": "utia", "smart_relay": true, "allow_multi_tx": true, "allow_unsafe": true, "experimental_features": ["hyperlane", "stargate", "eureka", "layer_zero"], "smart_swap_options": {"split_routes": true, "evm_swaps": true}, "go_fast": true, "fast_transfer": true}'