Class JsonRpcPublicProvider

Hierarchy (view full)

Implements

Constructors

Properties

client: PublicAPI

Methods

  • Parameters

    • addresses: string[]
    • final: boolean = true

    Returns Promise<{
        address: string;
        balance: bigint;
    }[]>

  • Returns the gas estimation for a given function.

    Parameters

    Returns Promise<bigint>

    The gas estimation for the operation execution.

    Remarks

    To avoid running out of gas, the gas estimation is increased by 20%.

    Throws

    If the read operation returns an error.

  • Parameters

    • address: string
    • filter: string | Uint8Array = ...
    • final: boolean = true

    Returns Promise<Uint8Array[]>

  • Parameters

    • address: string
    • keys: string[] | Uint8Array[]
    • final: boolean = true

    Returns Promise<(null | Uint8Array)[]>