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 freeRead-only same-chain swap estimation with expected output, slippage and fee breakdown (no transaction calldata).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | query | str | required | Chain id (hub aliases accepted). example: arbitrum |
tokenIn | query | str | required | Input token contract address. example: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 |
tokenInAmount | query | str | required | Input amount in token base units. example: 100000000 |
tokenOut | query | str | required | Output token contract address. example: 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1 |
slippage | query | str | optional | Optional slippage tolerance percentage (e.g. 'auto' or '0.5'). |
affiliateFeePercent | query | str | optional | Optional 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"