Get GTokens balances
Gtoken is a non-fungible utility token used within the Ternoa network, not mineable or tradable with other fungible tokens.
Prerequisites
Before getting started, make sure you have the following ready:
Create a Ternoa account with Alphanet CAPS
Own a GToken on alphanet created using Polkadot js portal.
Install and set up your editor of choice (we will use Visual Studio Code [VSC] in this tutorial)
Install NodeJS v.14+ & NPM
How to get the total GTokens balance of an address
This example shows how to get the total GTokens balance of an address using getAccountAssetBalance().
Last updated