2.5. Fee Estimates#
The Fee Estimates class is available in all explorers.
2.5.1. Sync Usage#
from bloxplorer import bitcoin_explorer as explorer
result = explorer.fees.get_estimates()
print(result.data)
2.5.2. Async Usage#
from bloxplorer import async_bitcoin_explorer as async_explorer
result = await async_explorer.fees.get_estimates()
print(result.data)
2.5.3. Result#
Both usages will output the same result data. Example output:
"""
{
'25': 1.014,
'144': 0.8739999999999999,
'504': 0.8739999999999999,
'10': 1.014,
'3': 1.08,
'17': 1.014,
'23': 1.014
}
"""
2.5.4. Available methods#
- class bloxplorer.fees.SyncFees(*args, **kwargs)#
Wrapper class around the Esplora Fee Estimates endpoint.
Blockstream Esplora Fee Estimates API Docs
- get_estimates(**kwargs)#
Get an object where the key is the confirmation target (in number of blocks) and the value is the estimated feerate (in sat/vB). The available confirmation targets are 2, 3, 4, 6, 10, 20, 144, 504 and 1008 blocks.
- Parameters:
**kwargs – (Optional) Arguments that Requests takes.
- Returns:
- class:
Response object.