curl --request POST \
--url https://api.walletsuite.io/api/swaps/route \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chain": "<string>",
"quoteId": "<string>"
}
'{
"ok": true,
"code": "<string>",
"message": "<string>",
"data": {
"chain": "<string>",
"provider": "ZERO_X",
"quoteId": "<string>",
"steps": [
{
"kind": "<string>",
"description": "<string>",
"needsApproval": true,
"spender": "<string>",
"approvalToken": "<string>",
"approvalAmount": 123,
"callTo": "<string>",
"callData": "<string>"
}
],
"warnings": [
"<string>"
],
"totalEstimatedGas": 123
}
}curl --request POST \
--url https://api.walletsuite.io/api/swaps/route \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chain": "<string>",
"quoteId": "<string>"
}
'{
"ok": true,
"code": "<string>",
"message": "<string>",
"data": {
"chain": "<string>",
"provider": "ZERO_X",
"quoteId": "<string>",
"steps": [
{
"kind": "<string>",
"description": "<string>",
"needsApproval": true,
"spender": "<string>",
"approvalToken": "<string>",
"approvalAmount": 123,
"callTo": "<string>",
"callData": "<string>"
}
],
"warnings": [
"<string>"
],
"totalEstimatedGas": 123
}
}Was this page helpful?