getKoiBalance
This function is based on K1. Know more about K2 and generate a K2 Koii wallet here
This function returns the KOII balance of a given address.
This wallet's private key needs to be loaded to retrieve the balance. This function does not take the address as a parameter and return the balance.
Example Code
In the below code example, replace <walletKeyLocation>
on line 4 with the local path to your wallet key file.
Example Code Output
Returns
Promise <Number> - Koii balance of a given address as a number.
Last updated