GET Firm quote

In src_chain and dst_chain please ensure the parameters are passed with standardised chain names. Reference: Networks

Get signed order data for selling a ERC20 / native token. Submit the return data to Native router to execute swap.

get
Query parameters
from_addressstringRequired

Address of the user that sells the token_in

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

Address of the user that receives the token_out. If empty, this address will be the same as from_address

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

Address of the end user that initiated the swap request. This is REQUIRED if you are an aggregator/widget/wallet. Optional for solvers.

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

Blockchain name, eg: ethereum, arbitrum, ... (refer to network name reference)

Possible values:
dst_chainstring · enumRequired

Blockchain name, eg: ethereum, arbitrum, ... (refer to network name reference)

Possible values:
token_instringRequired

Address of the token to be sold

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

Address of the token to be bought

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

Amount of token to be sold, in ether unit. (Skip if already passing amount_wei)

Default: 0
amount_weistringOptional

Amount of token to be sold, in wei unit. (Skip if already passing amount)

Default: 0
expiry_timenumberOptional

The expiry time of the quote, in seconds. Recommand 60 for all networks to avoid quoting errors.

Default: 0
slippagenumberOptional

Number in percent. For example, passing the value 5 means 5%, 0.1 means 0.1% slippage tolerance. Recommend keeping default 0.5

Default: 0.5
timeout_millisnumberOptional

Timeout in milliseconds for the API request, useful in latency-sensitive applications.

Default: 2000
allow_multihopstringOptional

Whether to use multihop within all Native supported pairs for quoting. Recommanded true for wallets/widgets.

Default: false
Header parameters
apiKeystringRequired

The API key that was assigned to you by Native

Responses
200

Success

application/json
get
/v1/firm-quote

Last updated