v1

latestOpenAPI 3.0.02026-07-267331140.7 KB
Account Management

Get EIP-712 typed data for setting daily limit

Returns the EIP-712 typed data that needs to be signed by the user's wallet to set a new daily limit. This endpoint is used as part of a three-step process:

  1. Call this endpoint to get the EIP-712 typed data
  2. Sign the typed data with the user's wallet using EIP-712 signature standard
  3. Submit the signature to the PUT /api/v1/accounts/daily-limit endpoint

Note: The newLimit must be an integer value between 1 and 8000.

get/api/v1/accounts/daily-limit/transaction-data

Query parameters

newLimitstring required

The new daily spending limit to set (1-8000, must be an integer).

Response

Successfully retrieved EIP-712 typed data for signing.

Example response

{
  "data": {
    "domain": {
      "verifyingContract": "0x3270bf32AB647e90eF94A026c70Aa1daaaDA2382",
      "chainId": 100
    },
    "primaryType": "ModuleTx",
    "types": {
      "ModuleTx": [
        {
          "type": "bytes",
          "name": "data"
        }
      ]
    },
    "message": {
      "data": "0xa8ec43eefe687fc128d1915040376d20ccb1bf40d838ddd82bf9b0ba3da683cc2a2516230000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000006866fd60",
      "salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
    }
  }
}