POST Filling order
Header parameters
apiKeystringRequired
The API key that was assigned to you by Native
Body
quoteIdstringRequired
Thd id of the bridge order
Responses
200
Success
application/json
sellerTokenstringRequiredExample:
token address
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2Pattern: ^0x[a-fA-F0-9]{40}$buyerTokenstringRequiredExample:
token address
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2Pattern: ^0x[a-fA-F0-9]{40}$srcChainIdnumberRead-onlyRequired
destChainIdnumberRead-onlyRequired
amountInstringRequiredExample:
token amount, in wei
1000000000000000000amountOutstringRequiredExample:
token amount, in wei
1000000000000000000fillDeadlinenumberRead-onlyRequired
sourcestring · enumRequiredPossible values:
Quote source name
post/v1/bridge/filling-order
POST /bridge/v1/bridge/filling-order HTTP/1.1
Host: newapi.native.org
apiKey: text
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"quoteId": "text"
}200
Success
{
"sellerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"buyerToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"srcChainId": 1,
"destChainId": 1,
"amountIn": "1000000000000000000",
"amountOut": "1000000000000000000",
"fillDeadline": 1,
"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"
}
},
"source": "p0",
"txRequest": {
"target": "text",
"calldata": "text",
"value": "text"
}
}Last updated