Skip to main content
GET
/
api
/
v1
/
accounts
/
daily-limit
/
transaction-data
Get EIP-712 typed data for setting daily limit
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.valox.co/api/v1/accounts/daily-limit/transaction-data', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": {
    "domain": {
      "verifyingContract": "0x3270bf32AB647e90eF94A026c70Aa1daaaDA2382",
      "chainId": 100
    },
    "primaryType": "ModuleTx",
    "types": {
      "ModuleTx": [
        {
          "type": "bytes",
          "name": "data"
        }
      ]
    },
    "message": {
      "data": "0xa8ec43eefe687fc128d1915040376d20ccb1bf40d838ddd82bf9b0ba3da683cc2a2516230000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000006866fd60",
      "salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

newLimit
string
required

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

Response

Successfully retrieved EIP-712 typed data for signing.

data
object
required