🏁getBalance

To get latest balance relevant address

const result = await Transaction.getBalance(<Receipt Address:Base58>,<assetID:integer>);

To get latest wallet balance info, we can use above methods

Sample:

const result = await Transaction.getBalance('PRTMPp6wo6zGAcStmhmBGQErnomzhFCoaTfLuXKTvo2',-1);

Response Example:

{
    "error":0,
    "name":"PIRI",
    "symbol":"PIRI",
    "logo":"/images/piri.png",
    "assetID":-1,
    "address":"PRTMRKWZ56v4D8mV1oj813bqTgdfUm9J4woVTDMpGxF",
    "frozen":[{"_id":null,"totalFrozen":216000.9}],
    "balance":"348782.10281186"
}

Last updated