GET Firm quote

/bridge/firm-quote

get

Request executable calldata for initiating a bridging request

Query parameters
from_addressstringRequired

Effectively recipient. This is the pay out address of the final swapped tokens. Funding address will always be the address calls Native Bridge Contract.

Pattern: ^0x[a-fA-F0-9]{40}$
src_chainstring · enumRequired

Blockchain name of the chain to initiate bridging, eg: ethereum, arbitrum, ... (refer to network name reference)

Possible values:
dst_chainstring · enumRequired

Blockchain name of the chain to receive bridged tokens, eg: ethereum, arbitrum, ... (refer to network name reference)

Possible values:
token_instringRequired

Address of the token to be sold/bridge-out

Pattern: ^0x[a-fA-F0-9]{40}$
token_outstringRequired

Address of the token to be bought/bridge-in

Pattern: ^0x[a-fA-F0-9]{40}$
amountstringRequired

The amount of token_in token to pay/sell/bridge-out

versionstringOptional

The version of Native Swap Router (if bridging includes token swaps). Leave empty or use 4 (latest)

refund_tostringRequired

The address to receive refunded tokens in an event of fail and refund. This MUST be the real user address or any address that can process the refund. Otherwise the fund will stuck.

Pattern: ^0x[a-fA-F0-9]{40}$
Header parameters
api_keystringRequired

The API key that was assigned to you by Native

Responses
chevron-right
200

Successful response containing executable calldata for initiating a bridging request

application/json
successbooleanOptional

Indicates whether the request was successful

widgetFeeSignaturestringOptional

Overall widget fee signature

recipientstringOptional

Address that will receive the final tokens

Pattern: ^0x[a-fA-F0-9]{40}$
amountInstringOptional

Total input amount (in wei)

amountOutstringOptional

Total output amount after fees (in wei)

amountOutBeforeFeestringOptional

Output amount before fees are deducted (in wei)

fallbackSwapDataArrayobject[]Optional

Fallback swap data array for alternative swap paths

tokenTransferFeeOnPercentnumber · doubleOptional

Token transfer fee as a percentage

sourceinteger · int32[]Optional

Source identifiers for the quote

quoteSourceinteger · int32[]Optional

Quote source identifiers

errorMessagestringOptional

Error message if any issues occurred

router_versionstringOptional

Version of the router used

toWrapbooleanOptional

Whether the operation involves wrapping tokens

toUnwrapbooleanOptional

Whether the operation involves unwrapping tokens

amountInOffsetinteger · int32Optional

Offset for amountIn in calldata

amountOutMinimumOffsetinteger · int32Optional

Offset for amountOutMinimum in calldata

prioritystring · enumOptional

Transaction priority level (e.g., 'fast')

Possible values:
get
/swap-api-v2/v1/bridge/firm-quote
200

Successful response containing executable calldata for initiating a bridging request

Last updated