Class SpeculativeClient

A client for interacting with the speculative execution endpoint in the Casper Network. This class is responsible for executing speculative transactions on the Casper Network and processing their responses.

Hierarchy

  • SpeculativeClient

Constructors

Properties

Methods

Constructors

Properties

handler: IHandler

Methods

  • Executes a speculative transaction on the Casper Network.

    Returns

    A promise that resolves to a SpeculativeExecResult, which contains the results of the speculative execution.

    Throws

    If the handler response is empty or if an error occurs while processing the RPC call or parsing the response.

    Parameters

    • reqID: string

      The request identifier for the RPC call.

    • deploy: Deploy

      The deploy object that represents the transaction to be executed.

    • Optional identifier: BlockIdentifier

      (Optional) The block identifier where the speculative transaction should be executed.

    Returns Promise<SpeculativeExecResult>

Generated using TypeDoc