2.4. Mempool

The Mempool class is available in all explorers.

2.4.1. Usage

from bloxplorer import bitcoin_testnet_explorer as explorer

result = explorer.mempool.get()
print(result.data)

"""
{
    'count': 8,
    'vsize': 2023,
    'total_fee': 7069,
    'fee_histogram': [
        [
            1.0,
            2023
        ]
    ]
}
"""
class bloxplorer.mempool.Mempool(*args, **kwargs)

Wrapper class around the Esplora Mempool endpoint.

Blockstream Esplora Mempool API Docs

get(**kwargs)

Get mempool backlog statistics.

Parameters

**kwargs – (Optional) Arguments that Requests takes.

Returns

class

Response object.

get_latest_txs(**kwargs)

Get a list of the last 10 transactions to enter the mempool.

Parameters

**kwargs – (Optional) Arguments that Requests takes.

Returns

class

Response object.

get_txids(**kwargs)

Get the full list of txids in the mempool as an array. The order of the txids is arbitrary and does not match bitcoind’s.

Parameters

**kwargs – (Optional) Arguments that Requests takes.

Returns

class

Response object.