POST /v1/gasless/create

Endpoint to create gasless order

post
Authorizations
Body
addressstringRequired

Address of the sender

Example: 0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1
tokenFromstringRequired

Address of the tokenFrom

Example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
tokenTostringRequired

Address of the tokenTo

Example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
chainFromnumberRequired

Chain of the tokenFrom

Example: 56
chainTonumberRequired

Chain of the tokenTo

Example: 56
amountstringRequired

Amount of tokens being traded

Example: 1000000000000000000
feestringRequired

Percentage of fee

Example: 0.005
amountOutMinstringRequired

Minimum amount obtained

Example: 1000000000000000000
swapCallstringRequired

Data of the call for the swap

Example: call data
signaturestringRequired

Signature of the user

Example: signature
deadlinenumberRequired

Timestamp of the deadline for the order

Example: 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?