• Fetch the current transaction count from the ledger.

    Parameters

    • t: HttpTransport

      HTTP transport instance

    • commitment: Commitment = 'confirmed'

      Desired commitment level

    • opts: CallOptions & {
          minContextSlot?: number;
      } = {}

      Additional call options

    Returns Promise<number>

    Total number of transactions processed by the ledger

    const count = await getTransactionCount(transport);
    

    1.0.0