Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Blockchain

Hierarchy

  • Blockchain

Index

Constructors

constructor

  • Parameters

    Returns Blockchain

Properties

Readonly client

client: Client

Methods

getBlockNumberStream

  • Return a stream of block numbers, accepts same parameters as getBlockNumbers.

    Parameters

    Returns ReadableStream

getBlockNumbers

  • Return a asynchronous block number iterator.

    Parameters

    Returns AsyncGenerator<number, any, unknown>

getBlockStream

  • Return a stream of blocks, accepts same parameters as getBlockNumbers.

    Parameters

    Returns ReadableStream

getBlocks

getCurrentBlock

  • Get latest block.

    Parameters

    Returns Promise<SignedBlock>

getCurrentBlockHeader

  • Get latest block header.

    Parameters

    Returns Promise<BlockHeader>

getCurrentBlockNum

  • Get latest block number.

    Parameters

    Returns Promise<number>

getOperations

getOperationsStream

  • Return a stream of operations, accepts same parameters as getBlockNumbers.

    Parameters

    Returns ReadableStream

Generated using TypeDoc