• Preparing search index...
  • The search index is not available
@oobe-protocol-labs/synapse-client-sdk
  • @oobe-protocol-labs/synapse-client-sdk
  • getBlockProduction

Function getBlockProduction

  • getBlockProduction(t, opts?): Promise<RpcContext<BlockProduction>>
  • Fetch recent block production information from the current or previous epoch.

    Parameters

    • t: HttpTransport

      HTTP transport instance

    • opts: GetBlockProductionOpts = {}

      Commitment, slot range, identity filter, and other call options

    Returns Promise<RpcContext<BlockProduction>>

    Context-wrapped block production statistics

    Example

    const { context, value } = await getBlockProduction(transport);
    console.log(value.byIdentity);

    Since

    1.0.0

    • Defined in src/rpc/methods/get-block-production.ts:35

Settings

Member Visibility
@oobe-protocol-labs/synapse-client-sdk
  • Loading...

Generated using TypeDoc