Skip to main content

Checking Account Balance

This section of the Eniblock SDK documentation provides instructions on how to check the balance of any given account, whether it was created using the Eniblock SDK or not.

From an Eniblock Wallet​

Check the native balance of the account​

This code retrieves the native balance information of your own account containing the asset balance.

Live Editor

Check the non-native balance of the account​

This code retrieves the token balance information of your own account containing the asset balance.

Live Editor

Check the NFT balance of the account​

The following code retrieves the information of the NFTs owned by your own account.

Live Editor

For any Blockchain Address​

Check the native balance of an address​

This code retrieves the native balance information of any account, given its address.

Live Editor

Check the non-native balance of an address​

This code retrieves the token balance information of any account, given its address.

Live Editor

Check the NFT balance of an address​

The following code retrieves the information of the NFTs owned by a specific account, given its address.

Live Editor

References​

  1. Account class
  2. Account.getNativeBalance() method
  3. Account.getTokensBalance() method
  4. BalanceResult interface
  5. NftsData interface
  6. UtilsNamespace.getNativeBalance() method
  7. UtilsNamespace.getTokensBalance() method