GET /v1.0/dln/order/create-tx
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/debridge/v1.0/dln/order/create-txCache cached 10s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeCross-chain quote estimate for an exact input amount: expected output, recommended/max theoretical output, itemised protocol/taker/operating costs, slippage and USD price impact.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
srcChainId | query | str | required | Source DLN chain id (hub aliases accepted). example: arbitrum |
srcChainTokenIn | query | str | required | Source token contract address (zero address for native). example: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 |
srcChainTokenInAmount | query | str | required | Input amount in token base units (USDC has 6 decimals). example: 100000000 |
dstChainId | query | str | required | Destination DLN chain id (hub aliases accepted). example: base |
dstChainTokenOut | query | str | required | Destination token contract address. example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
dstChainTokenOutAmount | query | str | optional | Optional fixed output amount or `auto`/`max`. |
dstChainTokenOutRecipient | query | str | optional | Optional recipient. Omit for an estimate-only response; supplying it makes upstream add unsigned transaction data. |
srcChainOrderAuthorityAddress | query | str | optional | Optional source order-authority address. |
affiliateFeePercent | query | float | optional | Optional affiliate fee percent. |
referralCode | query | int | optional | Optional deBridge referral code. |
Response
type: object
pagination: none
sample: {
"estimation": "object",
"tx": "object",
"order": "object",
"fixFee": "str",
"protocolFee": "str",
"userPoints": "float",
"integratorPoints": "float",
"protocolFeeApproximateUsdValue": "float",
"usdPriceImpact": "float"
}
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/dln/order/create-tx?srcChainId=arbitrum&srcChainTokenIn=0xaf88d065e77c8cC2239327C5EDb3A432268e5831&srcChainTokenInAmount=100000000&dstChainId=base&dstChainTokenOut=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"