Skip to main content

Getting Balance

Overview

Here is an example of getting balance:

Core SDK

Usage

var tokenContract = new ContractBasic(PortkeySDK.GetChain("AELF"), tokenAddress);

var balanceInput = new GetBalanceInput()
{
Owner = caAddress,
Symbol = "ELF"
};

yield return tokenContract.CallAsync<GetBalanceOutput>("GetBalance", balanceInput, output =>
{
//output.Balance
}, OnError);