### Hierarchy

- Blockchain

## Index

### Constructors

- constructor

### Properties

- client

### Methods

- getBlockNumberStream
- getBlockNumbers
- getBlockStream
- getBlocks
- getCurrentBlock
- getCurrentBlockHeader
- getCurrentBlockNum
- getOperations
- getOperationsStream

## Constructors

### constructor

- new Blockchain(client: Client): Blockchain

- - Defined in helpers/blockchain.ts:68

  #### Parameters

  - ##### client: Client

  #### Returns Blockchain

## Properties

### client

client: Client

- Defined in helpers/blockchain.ts:70

## Methods

### getBlockNumberStream

- getBlockNumberStream(options?: BlockchainStreamOptions | number): ReadableStream

- - Defined in helpers/blockchain.ts:132

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

  #### Parameters

  - ##### Optional options: BlockchainStreamOptions | number

  #### Returns ReadableStream

### getBlockNumbers

- getBlockNumbers(options?: BlockchainStreamOptions | number): AsyncIterableIterator<number>

- - Defined in helpers/blockchain.ts:103

  Return a asynchronous block number iterator.

  #### Parameters

  - ##### Optional options: BlockchainStreamOptions | number

    Feed options, can also be a block number to start from.

  #### Returns AsyncIterableIterator<number>

### getBlockStream

- getBlockStream(options?: BlockchainStreamOptions | number): ReadableStream

- - Defined in helpers/blockchain.ts:148

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

  #### Parameters

  - ##### Optional options: BlockchainStreamOptions | number

  #### Returns ReadableStream

### getBlocks

- getBlocks(options?: BlockchainStreamOptions | number): AsyncIterableIterator<SignedBlock>

- - Defined in helpers/blockchain.ts:139

  Return a asynchronous block iterator, accepts same parameters as getBlockNumbers.

  #### Parameters

  - ##### Optional options: BlockchainStreamOptions | number

  #### Returns AsyncIterableIterator<SignedBlock>

### getCurrentBlock

- getCurrentBlock(mode?: BlockchainMode): Promise<SignedBlock>

- - Defined in helpers/blockchain.ts:95

  Get latest block.

  #### Parameters

  - ##### Optional mode: BlockchainMode

  #### Returns Promise<SignedBlock>

### getCurrentBlockHeader

- getCurrentBlockHeader(mode?: BlockchainMode): Promise<BlockHeader>

- - Defined in helpers/blockchain.ts:88

  Get latest block header.

  #### Parameters

  - ##### Optional mode: BlockchainMode

  #### Returns Promise<BlockHeader>

### getCurrentBlockNum

- getCurrentBlockNum(mode?: BlockchainMode): Promise<number>

- - Defined in helpers/blockchain.ts:75

  Get latest block number.

  #### Parameters

  - ##### Default value mode: BlockchainMode = BlockchainMode.Irreversible

  #### Returns Promise<number>

### getOperations

- getOperations(options?: BlockchainStreamOptions | number): AsyncIterableIterator<AppliedOperation>

- - Defined in helpers/blockchain.ts:155

  Return a asynchronous operation iterator, accepts same parameters as getBlockNumbers.

  #### Parameters

  - ##### Optional options: BlockchainStreamOptions | number

  #### Returns AsyncIterableIterator<AppliedOperation>

### getOperationsStream

- getOperationsStream(options?: BlockchainStreamOptions | number): ReadableStream

- - Defined in helpers/blockchain.ts:167

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

  #### Parameters

  - ##### Optional options: BlockchainStreamOptions | number

  #### Returns ReadableStream

Generated using TypeDoc