RPC Method eth_estimateGas implementation

At the moment only the to, value and data fields are supported.

  • Parameters

    • thorClient: ThorClient

      ThorClient instance.

    • params: unknown[]

      The standard array of rpc call parameters. * params[0]: The transaction call object. * params[1]: A string representing a block number, or one of the string tags latest, earliest, or pending.

    Returns Promise<string>

    A hexadecimal number representing the estimation of the gas for a given transaction.