RPC Method eth_getBalance implementation

Only 'latest' and 'finalized' block numbers are supported.

  • Parameters

    • thorClient: ThorClient

      ThorClient instance.

    • params: unknown[]

      The standard array of rpc call parameters. * params[0]: The address to get the balance for as a hex string. * params[1]: The block number to get the balance at as a hex string or "latest".

    Returns Promise<string>

    the balance of the account at the given address formatted to the RPC standard.