Home Reference Source Test
public class | source

Mempool

Method Summary

Public Methods
public
public
public

async getStatistics(): Promise<Client.MempoolStatistics>

Gives some statistics on the current mempool.

public

async getTransactions(): Promise<Hash[]>

public

Public Methods

public async addTransactionAddedListener(listener: MempoolListener): Promise<Handle> source

Params:

NameTypeAttributeDescription
listener MempoolListener

Return:

Promise<Handle>

public async addTransactionRemovedListener(listener: MempoolListener): Promise<Handle> source

Params:

NameTypeAttributeDescription
listener MempoolListener

Return:

Promise<Handle>

public async getStatistics(): Promise<Client.MempoolStatistics> source

Gives some statistics on the current mempool. Well suited to estimate the ideal fee for a transaction

Return:

Promise<Client.MempoolStatistics>

Some statistics on the current mempool.

public async getTransactions(): Promise<Hash[]> source

Return:

Promise<Hash[]>

The hashes of all transactions in the current mempool.

public removeListener(handle: Handle) source

Params:

NameTypeAttributeDescription
handle Handle