debeem-wallet

Hierarchy (view full)

Implements

Constructors

Properties

cacheLatestGasLimit: RpcCache = ...

cache of Latest Gas Limit

Accessors

  • get supportedNetworks(): string[]
  • get supported chain/network short name list

    Returns string[]

Methods

  • query information about a block by blockHash

    Parameters

    • blockHash: string

      {string} A string representing the hash (32 bytes) of a block.

    • Optional transactionDetails: boolean

      {boolean} If set to true, returns the full transaction objects, if false returns only the hashes of the transactions.

    Returns Promise<BlockItem>

  • Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance. https://docs.infura.io/api/networks/ethereum/json-rpc-methods/eth_estimategas

    Parameters

    • transactionRequest: TransactionRequest

      {TransactionRequest} transaction request object

    Returns Promise<number>

    gas limit in wei.

  • fetch the receipt of a transaction given transaction hash. Note that the receipt is not available for pending transactions.

    Parameters

    • txHash: string

    Returns Promise<any>

Basic Methods