Skip to main content

Account.getNativeBalance() method

Retrieves the balance of an account

Signature:

getNativeBalance(): Promise<BalanceResult>;

Returns:

Promise<BalanceResult>

Remarks

Returns only the MATIC balance by default. In the future this method will retrieve ERC20 token balances by providing the TokenType.ERC20 and the contract addresses for the tokens.