ethGetBalance

suspend fun ethGetBalance(chainId: String): Any

Retrieves the Ether balance of the configured address for a given chain.

This function uses the eth_getBalance JSON-RPC method to query the blockchain for the balance associated with the address derived from the PortalNamespace.EIP155 namespace.

Return

PortalProviderResult Object containing balance of the address error object.

Parameters

chainId

The ID of the target blockchain

See also

Throws

if there's an underlying issue with the request itself.