JSON RPC provider for ethers. Needed to customize ethers functionality into hardhat plugin.

Hierarchy

  • JsonRpcApiProvider
    • JSONRPCEthersProvider

Constructors

Properties

Methods

Constructors

Properties

hardhatProvider: HardhatVeChainProvider

Instance of Hardhat VeChain provider to wrap

Methods

  • Internal method to send the payload to the hardhat provider. This method is able to send multiple payloads. (send in batch)

    Parameters

    • payload: JsonRpcPayload | JsonRpcPayload[]

      The payload to send (request and method)'s

    Returns Promise<(JsonRpcResult | JsonRpcError)[]>

  • Override the send method to use the hardhat provider and to call _start method.

    Parameters

    • method: string

      The method to call

    • params: unknown[] | Record<string, unknown>

      The parameters of the method

    Returns Promise<unknown>