GetBalance Function
__GetBalance: function (address) {
// Creates a new wallet instance
var wallet = Object.create(CRC_Wallet);
// Opens the specified wallet
if(wallet.OpenWallet(address)){
// if the wallet is available prints out the balance
println('Balance : ' + wallet.Balance + ' '+ this._Symbol);
return wallet.Balance;
}
return -1;
}Last updated