Skip to main content

WalletsInfo

Returns balance and other information for a list of provided wallet addresses.

Request Parameters

NameTypeDescription
addressesstring[]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:

NameTypeDescription
delegatedbooleanIs 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.

NameContent
Status code400
errorIdINVALID_PARAMS
messageValidation errors in WalletsInfo request.
errorsArray 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,
}
}
}