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 free

Cross-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

nameintypedescription
amount_inbodystrrequiredInput amount in the source asset's smallest unit (USDC has 6 decimals, so 100000 = 0.1 USDC)
example: 100000
source_asset_chain_idbodystrrequiredSource 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_denombodystrrequiredSource asset denom: an EVM contract address, a Cosmos denom ('utia', 'uusdc') or an SVM mint
example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
dest_asset_chain_idbodystrrequiredDestination 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_denombodystrrequiredDestination asset denom (same vocabulary as source)
example: utia
smart_relaybodybooloptionalAllow relayed routes for chains without a preferred relayer (page default: true)
default: True
example: True
allow_multi_txbodybooloptionalAllow routes that need more than one transaction
default: True
example: True
allow_unsafebodybooloptionalReturn routes whose quoted USD in/out differ materially (with small placeholder amounts the safe-mode check otherwise fails with BAD_PRICE_ERROR)
default: True
example: True
experimental_featuresbodylist[str]optionalBridge implementations to opt into (page sends hyperlane, stargate, eureka, layer_zero)
example: ["hyperlane","stargate","eureka","layer_zero"]
smart_swap_optionsbodyobjectoptionalSwap optimization flags
example: {"split_routes":true,"evm_swaps":true}
go_fastbodybooloptionalConsider Go Fast transfer legs (page sends true)
example: True
fast_transferbodybooloptionalConsider 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}'