vechain-sdk-js
vechain-sdk-js copied to clipboard
💡 [BREAKING CHANGES] Get Account :: Utility functions
Summary
It would be nice if getAccount returned a class or an object with some utility functions built in so it is easier to debug and read account balances etc.
Current code:
// Returns {balance, energy, hasCode}
const account = await client.accounts.getAccount(account)
Basic Example
It would be nice to have some extra functions such as:
const account = await client.accounts.getAccount(account)
console.log(account.parsedVet()) //if my VET balance is `0x43c33c1937564800000`, then it prints `20000`