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

Authorizations

Authorization
string
header
required

Public API key passed as Bearer token

Body

application/json
user
string
required

EVM address

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x1111111111111111111111111111111111111111"

nonce
string
required

Integer encoded as decimal string

Pattern: ^\d+$
Example:

"1000000"

deadline
string
required

Integer encoded as decimal string

Pattern: ^\d+$
Example:

"1000000"

signature
string
required

Hex string

Pattern: ^0x[a-fA-F0-9]*$
Example:

"0xabc123"

approved
boolean
default:true

Response

Relayed transaction

success
enum<boolean>
required
Available options:
true
txHash
string
required

32-byte hex hash

Pattern: ^0x[a-fA-F0-9]{64}$
Example:

"0x1111111111111111111111111111111111111111111111111111111111111111"

user
string
required

EVM address

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x1111111111111111111111111111111111111111"

operator
string
required

EVM address

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x1111111111111111111111111111111111111111"

relayer
string
required

EVM address

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x1111111111111111111111111111111111111111"