RPC Method eth_getCode 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 code for as a hex string. * params[1]: The block number to get the code at as a hex string or "latest".

    Returns Promise<string>

    The code of the account at the given address formatted to the RPC standard.