POST /trade/v1/gasless/typed-data

Endpoint to get the typed data needed to be signed by the user

post
Authorizations
Body
transactionDataobjectRequired

The transactionData object obtained from the /quote API.

senderstringRequired

Address of the sender

Example: 0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1
receiverstringRequired

Address of the receiver of the funds after the trade

Example: 0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1
chainIdnumberRequired

Chain code where the trade is conducted

Example: 56
Responses
200
Result of the gasless order creation
application/json
post
POST /trade/v1/gasless/typed-data HTTP/1.1
Host: 
Authorization: Bearer Bearer
Content-Type: application/json
Accept: */*
Content-Length: 145

{
  "transactionData": {},
  "sender": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "receiver": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "chainId": 56
}
200

Result of the gasless order creation

{
  "account": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1",
  "domain": {},
  "types": {},
  "primaryType": "UnizenGasLessOrder",
  "message": {},
  "call": {}
}

Last updated

Was this helpful?