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 free

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

nameintypedescription
srcChainIdquerystrrequiredSource DLN chain id (hub aliases accepted).
example: arbitrum
srcChainTokenInquerystrrequiredSource token contract address (zero address for native).
example: 0xaf88d065e77c8cC2239327C5EDb3A432268e5831
srcChainTokenInAmountquerystrrequiredInput amount in token base units (USDC has 6 decimals).
example: 100000000
dstChainIdquerystrrequiredDestination DLN chain id (hub aliases accepted).
example: base
dstChainTokenOutquerystrrequiredDestination token contract address.
example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
dstChainTokenOutAmountquerystroptionalOptional fixed output amount or `auto`/`max`.
dstChainTokenOutRecipientquerystroptionalOptional recipient. Omit for an estimate-only response; supplying it makes upstream add unsigned transaction data.
srcChainOrderAuthorityAddressquerystroptionalOptional source order-authority address.
affiliateFeePercentqueryfloatoptionalOptional affiliate fee percent.
referralCodequeryintoptionalOptional 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"