WalletsInfo
Returns balance and other information for a list of provided wallet addresses.
Request Parameters
Name | Type | Description |
---|---|---|
addresses | string[] | List of addresses of which informations will be retrieved. Up to 50 addresses can be provided. |
Responses
Regular response
The endpoint will return a key-value map of each address and its information, which will be encoded as follows:
Name | Type | Description |
---|---|---|
delegated | boolean | Is equal to true if the wallet is a Delegated Wallet. |
balance | {[k:string]: number} | Key value pair containing the balance of every held DeCash asset. |
Validation errors
Returned when the parameters are invalid.
Name | Content |
---|---|
Status code | 400 |
errorId | INVALID_PARAMS |
message | Validation errors in WalletsInfo request. |
errors | Array of strings containing additional informations. |
Example Usage
const response = await fetch('https://delegator-dev01b.arringo.co/api-test/WalletInfo', {
method: 'POST',
body: JSON.stringify({
'addresses': [
'V55LRWVEWZCXO5Z5A6LVEF4DK2AWE7VWKVUKBA6ZWCMA55ODBZKSDDQRBU',
'NBGKLNZDHMHCL7UPDMQBZPUF3JGQI3355WD5JPDB3U2ODNLAW6SDPO67JE',
],
})
});
const data = await response.json();
Example Success Response
{
"V55LRWVEWZCXO5Z5A6LVEF4DK2AWE7VWKVUKBA6ZWCMA55ODBZKSDDQRBU": {
"delegated": true,
"balance": {
"USDD": 45.32,
"EURD": 15.10,
}
},
"NBGKLNZDHMHCL7UPDMQBZPUF3JGQI3355WD5JPDB3U2ODNLAW6SDPO67JE": {
"delegated": true,
"balance": {
"USDD": 45.32,
"EURD": 15.10,
}
}
}