POST /v1/gasless/create
Authorizations
Body
addressstringRequiredExample:
Address of the sender
0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1
tokenFromstringRequiredExample:
Address of the tokenFrom
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
tokenTostringRequiredExample:
Address of the tokenTo
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
chainFromnumberRequiredExample:
Chain of the tokenFrom
56
chainTonumberRequiredExample:
Chain of the tokenTo
56
amountstringRequiredExample:
Amount of tokens being traded
1000000000000000000
feestringRequiredExample:
Percentage of fee
0.005
amountOutMinstringRequiredExample:
Minimum amount obtained
1000000000000000000
swapCallstringRequiredExample:
Data of the call for the swap
call data
signaturestringRequiredExample:
Signature of the user
signature
deadlinenumberRequiredExample:
Timestamp of the deadline for the order
1727862265
Responses
200
Result of the gasless order creation
post
POST /trade/v1/gasless/create HTTP/1.1
Host:
Authorization: Bearer Bearer
Content-Type: application/json
Accept: */*
Content-Length: 347
{
"address": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
"tokenFrom": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"tokenTo": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"chainFrom": 56,
"chainTo": 56,
"amount": "1000000000000000000",
"fee": "0.005",
"amountOutMin": "1000000000000000000",
"swapCall": "call data",
"signature": "signature",
"deadline": 1727862265
}
200
Result of the gasless order creation
No content
Last updated
Was this helpful?