POST /pipeline/v1/advanced/routes

Auth X-Hub-Key from API_HUB_KEYExecute POST /run/lifi/pipeline/v1/advanced/routesCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing free

Plan every route for a transfer: unsigned steps, fees, ETA and provider per route.

Parameters

nameintypedescription
fromAddressbodystrrequiredAddress the route is planned for; a burn placeholder such as 0x…dEaD works
example: 0x000000000000000000000000000000000000dEaD
fromAmountbodystrrequiredAmount in the source token's smallest unit, as an integer string
example: 1000000
fromChainIdbodyintrequiredSource chain id
example: 1
fromTokenAddressbodystrrequiredSource token address (zero address for the native token)
example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
toChainIdbodyintrequiredDestination chain id
example: 42161
toTokenAddressbodystrrequiredDestination token address
example: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831

Response

type: object
data key: routes
pagination: none
sample: {
  "routes": "array[11]",
  "unavailableRoutes": "object"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sX POST "https://openapihub.dev/run/lifi/pipeline/v1/advanced/routes" \
  -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
  -d '{"fromAddress": "0x000000000000000000000000000000000000dEaD", "fromAmount": "1000000", "fromChainId": 1, "fromTokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "toChainId": 42161, "toTokenAddress": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}'