Skip to main content
POST
/
gasless
/
operator
Relay operator approval
curl --request POST \
  --url https://api-testnet.context.markets/v2/gasless/operator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": "<string>",
  "nonce": "<string>",
  "deadline": "<string>",
  "signature": "<string>"
}
'
{
  "success": true,
  "txHash": "<string>",
  "user": "<string>",
  "operator": "<string>",
  "relayer": "<string>"
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Body

application/json
user
string
required

User's Ethereum address

nonce
string
required

Nonce for the permit signature

deadline
string
required

Unix timestamp deadline for the permit

signature
string
required

EIP-712 signature authorizing the operator approval

approved
boolean
default:true

Whether to approve or revoke the operator

Response

Operator approval relayed successfully

success
boolean
required
txHash
string
required

Transaction hash

user
string
required

User address

operator
string
required

Operator address (Settlement contract)

relayer
string
required

Relayer address that submitted the transaction