Skip to main content

Checking Account Balance

The Eniblock SDK provides the ability to check the balance of an account within a wallet, be it native or non-native tokens. Additionally, it also allows for the balance checking of any blockchain address, even if it's not part of the Eniblock wallet.

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.

Loading...

Check the non-native balance of the account

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

Loading...

Check the NFT balance of the account

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

Loading...

For any Blockchain Address

Check the native balance of an address

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

Loading...

Check the non-native balance of an address

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

Loading...

Check the NFT balance of an address

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

Loading...

References

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