GET
/
api
/
v1
/
accounts
/
onchain-daily-limit
/
transaction-data
Get transaction data for setting daily limit
const url = 'https://api.gnosispay.com/api/v1/accounts/onchain-daily-limit/transaction-data';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "data": {
    "transaction": {
      "to": "0x3270bf32AB647e90eF94A026c70Aa1daaaDA2382",
      "value": 0,
      "data": "0xa8ec43eefe687fc128d1915040376d20ccb1bf40d838ddd82bf9b0ba3da683cc2a2516230000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000006866fd60"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

onchainDailyLimit
string
required

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

Response

200
application/json

Successfully retrieved transaction data for signing.

The response is of type object.