cURL
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>" }
Relays a signed operator approval transaction so the user doesn’t need to pay gas. Approves the Settlement contract as an operator on the Holdings contract.
API key passed as Bearer token
User's Ethereum address
Nonce for the permit signature
Unix timestamp deadline for the permit
EIP-712 signature authorizing the operator approval
Whether to approve or revoke the operator
Operator approval relayed successfully
Transaction hash
User address
Operator address (Settlement contract)
Relayer address that submitted the transaction