GET /v1.0/chain/estimation

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/debridge/v1.0/chain/estimationCache cached 30s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Read-only same-chain swap estimation with expected output, slippage and fee breakdown (no transaction calldata).

Parameters

nameintypedescription
chainIdquerystrrequiredChain id (hub aliases accepted).
example: arbitrum
tokenInquerystrrequiredInput token contract address.
example: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831
tokenInAmountquerystrrequiredInput amount in token base units.
example: 100000000
tokenOutquerystrrequiredOutput token contract address.
example: 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
slippagequerystroptionalOptional slippage tolerance percentage (e.g. 'auto' or '0.5').
affiliateFeePercentquerystroptionalOptional affiliate fee percentage.

Response

type: object
pagination: none
sample: {
  "estimation": "object"
}

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/debridge/v1.0/chain/estimation?chainId=arbitrum&tokenIn=0xaf88d065e77c8cC2239327C5EDb3A432268e5831&tokenInAmount=100000000&tokenOut=0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"