PUT
/
api
/
v1
/
accounts
/
onchain-daily-limit
Set onchain daily limit
const url = 'https://api.gnosispay.com/api/v1/accounts/onchain-daily-limit';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"onchainDailyLimit":2500,"signature":"0x1234567890abcdef..."}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "data": {
    "requestedOnchainDailyLimit": 2500
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Successfully submitted the daily limit update request.

The response is of type object.