💰Balances And History
Balance
Reading balances using an instance of SDK is simply calling getBalances()
method of it.
The resulting balances
in this case is a mapping of asset id to amount of that asset. E.g.
Transaction History
Reading the transaction history of a user is also as simple as calling getHistory()
method:
The txHistory
is a list of history items with multiple fields:
hash
: The transaction hash identifying the transaction.action
: A string denoting the type of transaction likedeposit
,withdraw
,receive
, etc.assets
: The assets involved in the transaction.timestamp
: The timestamp of the transaction.
Last updated