PrepareProvider is a utility class to output the prepared format of an operation

Hierarchy

  • Provider
    • PrepareProvider

Implements

Constructors

Properties

context: Context

Accessors

Methods

  • Type Parameters

    • T extends {
          fee?: number;
          gasLimit?: number;
          storageLimit?: number;
      }

    Parameters

    Returns Promise<{
        fee: undefined | number;
        gasLimit: undefined | number;
        storageLimit: undefined | number;
    }>

  • Parameters

    Returns Promise<{
        counter: number;
        opOb: {
            branch: string;
            contents: OperationContents[];
            protocol: string;
        };
        opbytes: string;
    }>

  • Parameters

    • publicKeyHash: string

    Returns Promise<boolean>

  • Parameters

    • op: RPCRunOperationParam

    Returns Promise<{
        context: Context;
        op: RPCRunOperationParam;
        opResponse: PreapplyResponse;
    }>

  • Parameters

    Returns Promise<{
        context: Context;
        forgedBytes: ForgedBytes;
        hash: string;
        opResponse: OperationContentsAndResult[];
    }>

  • Parameters

    • op: RPCSimulateOperationParam

    Returns Promise<{
        context: Context;
        op: RPCSimulateOperationParam;
        opResponse: PreapplyResponse;
    }>