Class MulticallProvider

Represents a multicall capable provider interface

Hierarchy

  • MulticallProvider

Constructors

  • Protected

    Protected constructor of the object

    Parameters

    • provider: Provider | Signer
    • chainId: number
    • Optional multicallAddress: string

    Returns MulticallProvider

Properties

chainId: number
provider: Provider | Signer

Methods

  • Execute the requests contract calls using the multicall contract facility

    Type Parameters

    • Type extends any[] = any[]

    Parameters

    Returns Promise<Type>

  • Get the block hash for the specified block number

    Parameters

    • blockNumber: BigNumberish

    Returns Promise<string>

  • Returns the current block coinbase address

    Returns Promise<string>

  • Return the current block difficulty

    Returns Promise<BigNumber>

  • Return the current block gas limit

    Returns Promise<BigNumber>

  • Return the current block timestamp

    Returns Promise<BigNumber>

  • Return the balance for the specified account

    Parameters

    • account: string

    Returns Promise<BigNumber>

  • Returns the last block hash

    Returns Promise<string>

  • Execute the requests contract calls using the multicall contract facility

    Type Parameters

    • Type extends any[] = any[]

    Parameters

    Returns Promise<Type>

    Deprecated

    Alias

    aggregate

  • Registers the multicall address for the specified chain ID

    Parameters

    • chainId: number
    • multicallAddress: string

    Returns void