Native Swaps
Returns transaction data for swapping between native currency and tokens. Uses the quoteData from a previous quote API call to generate executable transaction data.
Body
quoteDatastringRequiredExample:
Encoded quote data from a previous call to the quotes/native API
eyJ0b2tlbk91dCI6IjB4MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MCIsImFtb3VudEluTmF0aXZlIjoiMTAwMDAwMDAwMDAwMDAwMDAwMCIsImFtb3VudE91dEluVG9rZW5zIjoiOTg1MDAwMDAwMDAwMDAwMDAwIiwidG9rZW5PdXREZWNpbWFscyI6MTgsImV4Y2hhbmdlIjowLCJwYXJhbXMiOnsic3RhYmxlIjpmYWxzZSwidGlja1NwYWNpbmciOjAsImZlZSI6MCwiYmluU3RlcCI6IjAiLCJyZXZlcnNlZCI6ZmFsc2V9fQ==slippagenumber · max: 100OptionalDefault:
Slippage tolerance percentage (0-100)
0.5Example: 1toAddressstringOptionalExample:
Address to receive tokens (defaults to sender)
0xabcdef1234567890abcdef1234567890abcdef12Pattern: ^0x[a-fA-F0-9]{40}$feeBpsinteger · max: 10000OptionalExample:
Partner fee in basis points (0-10000)
25feeRecipientstringOptionalExample:
Address to receive the partner fee
0xabcdef1234567890abcdef1234567890abcdef12Pattern: ^0x[a-fA-F0-9]{40}$Responses
200
Transaction data for executing the swap
application/json
400
Invalid request parameters
application/json
500
Internal server error
application/json
post
/api/v1/swap/nativeLast updated

