GET Firm quote
Query parameters
from_addressstringRequiredExample:
Address of the user that sells the token_in
0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3
Pattern: ^0x[a-fA-F0-9]{40}$
to_addressstringRequiredExample:
Address of the user that receives the token_out. If empty, this address will be the same as from_address
0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3
Pattern: ^0x[a-fA-F0-9]{40}$
beneficiary_addressstringRequiredExample:
Address of the end user that initiated the swap request.
0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3
Pattern: ^0x[a-fA-F0-9]{40}$
src_chainstring · enumRequiredPossible values:
Blockchain name, eg: ethereum, bsc, ...
dst_chainstring · enumRequiredPossible values:
Blockchain name, eg: ethereum, bsc, ...
token_instringRequiredExample:
Address of the token to be sold
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Pattern: ^0x[a-fA-F0-9]{40}$
token_outstringRequiredExample:
Address of the token to be bought
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Pattern: ^0x[a-fA-F0-9]{40}$
amountnumberRequiredExample:
Amount of token to be sold, in ether unit.
1
amount_weistringRequiredExample:
Amount of token to be sold, in wei unit.
1000000000000000000
expiry_timenumberOptionalDefault:
The expiry time of the quote, in seconds.
0
slippagenumberOptionalDefault:
Number in percent. For example, passing the value 5 means 5%, 0.1 means 0.1% slippage tolerance. By default it's 0.
0
Header parameters
apiKeystringRequired
The API key that was assigned to you by Native
Responses
200
Success
application/json
get
GET /bridge/v1/bridge/firm-quote HTTP/1.1
Host: newapi.native.org
apiKey: text
Accept: */*
200
Success
{
"sellerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"buyerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"srcChainId": 1,
"destChainId": 1,
"amountIn": "1000000000000000000",
"amountOut": "1000000000000000000",
"amountOutEther": 1,
"estimateDuration": 1,
"bridgeFeeUsd": 1,
"source": "p0",
"quoteId": "text",
"signer": "0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3",
"initiateDeadline": 1,
"fillDeadline": 1,
"refundBufferTime": "text",
"contract": {
"swapper": "0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3",
"order": {
"pool": "0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3",
"signer": "0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3",
"recipient": "0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3",
"sellerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"buyerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"effectiveSellerTokenAmount": "1000000000000000000",
"sellerTokenAmount": "1000000000000000000",
"buyerTokenAmount": "1000000000000000000",
"deadlineTimestamp": "text",
"nonce": "text",
"quoteId": "text",
"multiHop": true,
"signature": "text",
"widgetFee": {
"signer": "text",
"feeRecipient": "text",
"feeRate": 1
},
"widgetFeeSignature": "text",
"externalSwapCalldata": "text",
"amountOutMinimum": "1000000000000000000"
},
"orderInput": {
"token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"initiateDeadline": 1,
"amount": "1000000000000000000"
},
"orderOutput": {
"token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "1000000000000000000",
"chainId": 1,
"recipient": "0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3"
},
"fallbackData": {
"bridgeAddress": "0x1235dB6df8a915557fF1fD0B9098C5548F2e06e3",
"bridgeCalldata": "text"
}
},
"txRequest": {
"target": "text",
"calldata": "text",
"value": "text"
}
}