cURL
curl --request POST \ --url https://api-testnet.context.markets/v2/gasless/deposit-with-permit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "user": "<string>", "amount": "<string>", "nonce": "<string>", "deadline": "<string>", "signature": "<string>" } '
{ "success": true, "txHash": "<string>", "user": "<string>", "token": "<string>", "amount": "<string>", "relayer": "<string>" }
Relays a signed USDC deposit transaction using EIP-2612 permit, so the user doesn’t need to pay gas. Deposits USDC into the Holdings contract.
API key passed as Bearer token
User's Ethereum address
Amount of USDC to deposit (e.g. "100")
Nonce for the permit signature
Unix timestamp deadline for the permit
EIP-2612 permit signature authorizing the deposit
Deposit relayed successfully
Transaction hash
User address
Token address (USDC)
Amount deposited
Relayer address that submitted the transaction