tuweni / org.apache.tuweni.evm / TransactionalEVMHostContext / getBalance

getBalance

suspend fun getBalance(address: Address): Wei (source)

Get balance function.

This function is used by a VM to query the balance of the given account.

Parameters

address - The address of the account.

Return
The balance of the given account or 0 if the account does not exist.