JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.valox.co/api/v1/accounts/onchain-daily-limit', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "data": { "onchainDailyLimit": 2500, "onchainDailyRemaining": 1000 } }
This endpoint is deprecated and will be removed in a future version. Please use GET /api/v1/accounts/daily-limit instead.
GET /api/v1/accounts/daily-limit
Retrieves the current onchain daily spending limit for the authenticated user’s Safe account.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully retrieved the current onchain daily limit.
Show child attributes
The current daily spending limit in the Safe token's base units.
2500
The remaining daily spending limit in the Safe token's base units.
1000