Enhancements to the Bitcoin-like and Ethereum-like dashboards
https://api.blockchair.com/{:chain}/dashboards/hashrate
that outputs the estimated hashrate by day. Example: https://api.blockchair.com/bitcoin/dashboards/hashrate
.https://api.blockchair.com/bitcoin/dashboards/difficulty
. It outputs:status
is completed
, hashrate
is the estimated average hashrate within the period, avg_block_time
is the average time between blocks in secondsstatus
is ongoing
status
is planned
, start_time
is the estimated time when the period will start based on the current hashrate and the number of blocks left in the current period, difficulty is the estimated difficulty
for the next period, hashrate
is the same as for the current period, avg_block_time
is always 600
(10 minutes) as it's the target time between blocksEnhancements to the Bitcoin-like and Ethereum-like dashboards
https://api.blockchair.com/{:eth_chain}/dashboards/transaction/{:hash}
) for unconfirmed transactions. Please note that these values are not final and may change as transactions get confirmed: tracing unconfirmed transactions doesn't take possible changes to the state into account.?events=true
option is used, API returns values for gas_used
, fee
, fee_usd
instead of nulls
?trace_mempool=true
option is used, API returns values for internal_value
and internal_value_usd
instead of nulls
null
for failed
https://api.blockchair.com/{:eth_chain}/dashboards/address/{:address}
): ?transactions_instead_of_calls=true
. If applied, it returns the list of latest transaction hashes in the transactions
array instead of returning the calls
array. An important difference is that ERC-20 transfers that weren't previously included in the calls
array will be among transactions
. This option also affects transaction_count
behaviour: if enabled, it returns the transaction count for an address which takes ERC-20 transfers into account. Using this option costs 2
. The option has no effect on contracts (i.e. for contracts the calls
array will be returned even if the option is enabled).https://api.blockchair.com/{:eth_chain}/stats
) now also outputs addresses
yielding the total number of addresses (including both accounts and contracts) ever seen on chain.We have added support for the London hard fork to our API!
base_fee_per_gas
(queryable, sortable, aggregatable). Average base fee per day example: https://api.blockchair.com/ethereum/blocks?a=date,avg(base_fee_per_gas)&q=id(12965000..)
burned_total
(queryable, sortable, aggregatable). Examples:https://api.blockchair.com/ethereum/blocks?a=date,sum(burned_total)&q=id(12965000..)
https://api.blockchair.com/ethereum/blocks?a=date,f(sum(burned_total)/sum(generation))&q=id(12965000..)
base_fee_per_gas
(queryable, sortable, aggregatable)effective_gas_price
(queryable, sortable, aggregatable)max_fee_per_gas
(null
for legacy transactions; queryable, sortable, aggregatable)max_priority_fee_per_gas
(null
for legacy transactions; queryable, sortable, aggregatable)base_fee_per_gas
(base fee of the block; queryable, sortable, aggregatable)burned
(calculated as gas_used * base_fee_per_gas
; queryable, sortable, aggregatable)https://api.blockchair.com/{:eth_chain}/stats
dashboardversion
field (queryable, aggregatable) to Ethereum transactions. 0
represents legacy transactions, 1
is for EIP-2718 transactions, 2
is for London transactions. In Ethereum terminology this is "type" instead of "version", but as we're already using "type" for another column, we decided to go with "version". Example: https://api.blockchair.com/ethereum/transactions?a=version,count()&q=block_id(12965000..)
. Please note that for all transactions before block #12965000 it always returns 0
, even for EIP-2718 transactions: this will be fixed in one of the next updates.type_2718
(queryable) that represents transaction type as outlined in EIP-2718