Blockchain
The blockchain endpoint contains analytics data about specific blockchains. Currently Ethereum is supported.
Layer 1
Currently, only the Ethereum and Near Blockchain are supported.
curl https://api.alterscope.org/data/blockchain/ethereum/transaction-statistics -H "Authorization: Bearer <your_access_token>"
Note: The sample response below is shortened for formatting purposes and display blockchain data for single day. The actual response should list blockchain data for past 7 days.
{
"status":true,
"data":[
{
"daily_num_blocks_created":2414,
"average_block_creation_time":35.791217895608945,
"daily_new_tx":427914,
"daily_new_contract":244,
"daily_block_num_stats":{
"tx_type_stats":[
{
"tx_type":0,
"tx_type_freq":69230,
"num_contract_creation":18,
"num_eoa_interaction":32673,
"num_sc_interaction":36539
},
{
"tx_type":1,
"tx_type_freq":1514,
"num_contract_creation":0,
"num_eoa_interaction":1246,
"num_sc_interaction":268
},
{
"tx_type":2,
"tx_type_freq":357263,
"num_contract_creation":226,
"num_eoa_interaction":117693,
"num_sc_interaction":239344
}
],
"base_fee":{
"min_value":28.494744083,
"max_value":103.276883282,
"avg_value":43.765392213,
"total_value":18727824.043733805
},
"gas_usage":{
"min_value":21000,
"max_value":28391592,
"avg_value":85078,
"total_value":36406165057
},
"gas_not_usage":{
"min_value":0,
"max_value":29403100,
"avg_value":120148,
"total_value":51413366713
},
"gas_limit":{
"min_value":21000,
"max_value":30000000,
"avg_value":205227,
"total_value":87819531770
},
"eth_burnt":{
"min_value":0.000598389625743,
"max_value":1.5334767836590113,
"avg_value":0.003735844354338669,
"total_value":1598.6201010424772
},
"gas_fee_cap":{
"min_value":28.494744083,
"max_value":50100,
"avg_value":77.669579439,
"total_value":33235900.416269466
},
"gas_tip_cap":{
"min_value":0,
"max_value":50000,
"avg_value":13.340858246,
"total_value":5708740.015862143
},
"tx_fee":{
"min_value":0.000598389625743,
"max_value":2.1019101763508656,
"avg_value":0.004231138797103958,
"total_value":1810.5635272239433
},
"tx_fee_savings":{
"min_value":0,
"max_value":3.874989807415074,
"avg_value":0.006016501792353975,
"total_value":2574.545347973359
},
"gas_price":{
"min_value":28.494744083,
"max_value":50066.571481966,
"avg_value":48.591407005,
"total_value":20792943.337486733
},
"sc_deploy":{
"min_value":0.002496237853122375,
"max_value":0.33490952032048665,
"avg_value":0.000034770806863614,
"total_value":14.878915048236626
},
"sc_burnt":{
"min_value":0.002410817353122375,
"max_value":0.3335327011320707,
"avg_value":0.000033503317985969,
"total_value":14.336538812648202
}
},
"timestamp":"15-03-2024"
}
"daily_num_blocks_created"
: Indicates the number of blocks created on a single day."average_block_creation_time"
: Represents the average time taken to create a block."daily_new_tx"
: Denotes the number of new transactions recorded on a single day."daily_new_contract"
: Specifies the number of new contracts created on a single day."daily_block_num_stats"
: Provides further detailed statistics on the daily block activity, including different types of transactions and various gas-related metrics. Key components include:"tx_type_stats"
: Breaks down transaction types, including regular transactions, contract creations, and interactions with externally owned accounts (EOAs) or smart contracts (SCs)."base_fee"
,"gas_usage"
,"gas_not_usage"
,"gas_limit"
,"eth_burnt"
,"gas_fee_cap"
,"gas_tip_cap"
,"tx_fee"
,"tx_fee_savings"
,"gas_price"
,"sc_deploy"
, and"sc_burnt"
: Provide statistical measures related to gas fees, Ethereum burnt, transaction fees, gas prices, and smart contract deployments and burns, including minimum, maximum, average, and total values for each metric.
"timestamp"
: Indicates the date and time when this data was collected
curl https://api.alterscope.org/data/blockchain/near -H "Authorization: Bearer <your_access_token>"
Note: The sample response below is shortened for formatting purposes and display blockchain data for single day. The actual response should list blockchain data for a whole week.
{
"status": true,
"data": [
{
"num_val_candidates": 217,
"num_validators": 212,
"num_shards": 4,
"num_validator_shards": 52,
"beacon_new_block_speed": 0.9677,
"num_slashes": 0,
"fishermen_reporters": 0,
"gini_coeff": 0.7124079304741725,
"daily_new_users": -106857,
"total_num_users": 213047,
"num_proposals": 217,
"inflation_rate": 20.773717808547328,
"monthly_inflation_rate": 2.2162200158246423,
"staked_near_rate": 0.4910605927496621,
"treasury_funds": 2437214266.150414,
"avg_validator_reward": 0,
"total_tx_fees": 2.548164691842724e+27,
"avg_tx_fees": 1.2214278142757487e+21,
"total_supply": 1173220070,
"circulating_supply": 1027735145,
"total_stake": "576122143",
"seat_price": 27964,
"daily_new_tx": 2086218,
"latest_gas_price": 0.0001,
"daily_gas_used": 0,
"timestamp": "2024-01-21T13:08:38.224938746Z"
},
{
"num_val_candidates": 216,
"num_validators": 213,
"num_shards": 4,
"num_validator_shards": 52,
"beacon_new_block_speed": 0.9677,
"num_slashes": 0,
"fishermen_reporters": 0,
"gini_coeff": 0.7145502471778302,
"daily_new_users": -248238,
"total_num_users": 319904,
"num_proposals": 216,
"inflation_rate": 21.008196682307435,
"monthly_inflation_rate": 2.2378205864165426,
"staked_near_rate": 0.4910136461965076,
"treasury_funds": 2464378240.6942816,
"avg_validator_reward": 0,
"total_tx_fees": 2.8498496040513196e+27,
"avg_tx_fees": 1.2523117814707485e+21,
"total_supply": 1173055583,
"circulating_supply": 1028132543,
"total_stake": "575986299",
"seat_price": 27225,
"daily_new_tx": 2275671,
"latest_gas_price": 0.0001,
"daily_gas_used": 0,
"timestamp": "2024-01-20T13:08:54.504148603Z"
},
{
"num_val_candidates": 218,
"num_validators": 211,
"num_shards": 4,
"num_validator_shards": 52,
"beacon_new_block_speed": 1.0714,
"num_slashes": 0,
"fishermen_reporters": 0,
"gini_coeff": 0.7140171770653394,
"daily_new_users": 132049,
"total_num_users": 568142,
"num_proposals": 218,
"inflation_rate": 20.334053798496093,
"monthly_inflation_rate": 2.289401956140018,
"staked_near_rate": 0.48924764680661054,
"treasury_funds": 2384956952.1675324,
"avg_validator_reward": 0,
"total_tx_fees": 2.9057121334998724e+27,
"avg_tx_fees": 1.1390705946803632e+21,
"total_supply": 1172888090,
"circulating_supply": 1026812836,
"total_stake": "573832738",
"seat_price": 27220,
"daily_new_tx": 2550950,
"latest_gas_price": 0.0001,
"daily_gas_used": 0,
"timestamp": "2024-01-19T13:09:31.809300784Z"
},
{
"num_val_candidates": 218,
"num_validators": 213,
"num_shards": 4,
"num_validator_shards": 52,
"beacon_new_block_speed": 1.1765,
"num_slashes": 0,
"fishermen_reporters": 0,
"gini_coeff": 0.713771191531629,
"daily_new_users": -3005,
"total_num_users": 436093,
"num_proposals": 218,
"inflation_rate": 19.40435683353573,
"monthly_inflation_rate": 1.1576609454688755,
"staked_near_rate": 0.4907325890942067,
"treasury_funds": 2275592839.868685,
"avg_validator_reward": 0,
"total_tx_fees": 2.9938491237410354e+27,
"avg_tx_fees": 1.2837028089986508e+21,
"total_supply": 1172722631,
"circulating_supply": 1016619856,
"total_stake": "575493213",
"seat_price": 27212,
"daily_new_tx": 2332198,
"latest_gas_price": 0.0001,
"daily_gas_used": 0,
"timestamp": "2024-01-18T13:09:15.827378962Z"
},
{
"num_val_candidates": 219,
"num_validators": 209,
"num_shards": 4,
"num_validator_shards": 51,
"beacon_new_block_speed": 0.9375,
"num_slashes": 0,
"fishermen_reporters": 0,
"gini_coeff": 0.7091012071619163,
"daily_new_users": -73797,
"total_num_users": 439098,
"num_proposals": 219,
"inflation_rate": 19.303590104627414,
"monthly_inflation_rate": 1.223622013946435,
"staked_near_rate": 0.4900722348570804,
"treasury_funds": 2263458981.591217,
"avg_validator_reward": 0,
"total_tx_fees": 3.1464672725391845e+27,
"avg_tx_fees": 1.2463462928047795e+21,
"total_supply": 1172558560,
"circulating_supply": 1015060095,
"total_stake": "574638394",
"seat_price": 27205,
"daily_new_tx": 2524553,
"latest_gas_price": 0.0001,
"daily_gas_used": 0,
"timestamp": "2024-01-17T13:09:01.592373569Z"
},
{
"num_val_candidates": 218,
"num_validators": 212,
"num_shards": 4,
"num_validator_shards": 52,
"beacon_new_block_speed": 0.9524,
"num_slashes": 0,
"fishermen_reporters": 0,
"gini_coeff": 0.7123443493556004,
"daily_new_users": -133680,
"total_num_users": 512895,
"num_proposals": 218,
"inflation_rate": 19.688765029539315,
"monthly_inflation_rate": 1.056888848912017,
"staked_near_rate": 0.4899910795300243,
"treasury_funds": 2308291168.5823197,
"avg_validator_reward": 0,
"total_tx_fees": 2.9930571569140595e+27,
"avg_tx_fees": 1.213978682127825e+21,
"total_supply": 1172390023,
"circulating_supply": 1017153051,
"total_stake": "574460653",
"seat_price": 27198,
"daily_new_tx": 2465494,
"latest_gas_price": 0.0001,
"daily_gas_used": 0,
"timestamp": "2024-01-16T13:08:43.956933324Z"
},
{
"num_val_candidates": 218,
"num_validators": 212,
"num_shards": 4,
"num_validator_shards": 53,
"beacon_new_block_speed": 1,
"num_slashes": 0,
"fishermen_reporters": 0,
"gini_coeff": 0.7228118939698379,
"daily_new_users": -21598,
"total_num_users": 646575,
"num_proposals": 218,
"inflation_rate": 19.585051309213803,
"monthly_inflation_rate": 1.0034639858114285,
"staked_near_rate": 0.5085628861114029,
"treasury_funds": 2295804863.884825,
"avg_validator_reward": 0,
"total_tx_fees": 3.198672687784763e+27,
"avg_tx_fees": 1.1834303857085744e+21,
"total_supply": 1172223053,
"circulating_supply": 1013337440,
"total_stake": "596149139",
"seat_price": 27194,
"daily_new_tx": 2702882,
"latest_gas_price": 0.0001,
"daily_gas_used": 0,
"timestamp": "2024-01-15T13:08:34.171900015Z"
}
]
}
num_val_candidates
: The total number of validator candidates. These are the nodes that have expressed an intention to become validators.num_validators
: The actual number of validators in the network, responsible for verifying and processing transactions and creating new blocks.num_shards
: The total number of shards in the network. Sharding is a method used to scale the network by partitioning data.num_validator_shards
: The number of shards that have validators assigned to them.beacon_new_block_speed
: The average speed at which new blocks are created in the beacon chain.num_slashes
: The total number of slashing events. Slashing is a penalty imposed on validators for malicious or incorrect validation of transactions.fishermen_reporters
: The number of fishermen reporters selected by network.gini_coeff
: The Gini coefficient representing the distribution of NEAR tokens among NEAR chain. A value closer to 1 indicates high inequality.daily_new_users
: The net number of new users that joined the network on that day. A negative number indicates more users left or were deactivated than joined.total_num_users
: The total number of users in the network.num_proposals
: The number of proposals put forward for voting or consideration on that day.inflation_rate
: The annual rate at which the supply of the network's currency is increasing.monthly_inflation_rate
: The monthly rate at which the supply of the network's currency is increasing.staked_near_rate
: The proportion NEAR that is staked.treasury_funds
: The total funds held in the network's treasury at the time of the snapshot. (in NEAR tokens)avg_validator_reward
: The average reward earned by validators. (in NEAR tokens)total_tx_fees
: The total transaction fees collected by the network. (in NEAR tokens)avg_tx_fees
: The average transaction fee per transaction. (in NEAR tokens)total_supply
: The total supply of the network's native currency.circulating_supply
: The portion of the total supply that is actively circulating in the market and not locked or reserved.total_stake
: The total amount of the network's native currency that is staked. (in NEAR tokens)seat_price
: The price for a seat in the validation process, likely determined through some form of auction or bidding process. (in NEAR tokens)daily_new_tx
: The total number of new transactions processed by the network in a day.latest_gas_price
: The latest recorded price for gas, which is the fee required to conduct a transaction or execute a contract on the blockchain network. (in NEAR tokens)daily_gas_used
: The total amount of gas used for transactions and contract executions on that day. (in NEAR tokens)timestamp
: The timestamp indicating when these statistics were recorded, in ISO 8601 format (UTC).
curl https://api.alterscope.org/data/blockchain/ethereum/network-statistics -H "Authorization: Bearer RWx5c2lhbg=="
Note: The sample response below is shortened for formatting purposes and display blockchain network analytics data for single day. The actual response should list blockchain network analytics data for past 7 days with their timestamps.
{
"status":true,
"data":[
{
"num_validators":976290,
"beacon_new_block_speed":11.142857142857142,
"mempool_status":{
"jsonrpc":"2.0",
"id":"1",
"result":{
"pending":"67880",
"queued":"6107"
}
},
"num_proposals":747,
"daily_supply_change":120080571.39520143,
"burned_eth":4178771.792771067,
"total_staking_rewards":1885475.970172497,
"avg_validator_reward":0,
"total_supply":120080570.39520143,
"total_stake":41365221.376960635,
"avg_stake":42.36980956166778,
"seat_price":32,
"timestamp":1710633622
}
num_validators: The number of validators currently active on the Ethereum network to validate transactions.
beacon_new_block_speed: The speed at which new blocks are being added to the Ethereum beacon chain, measured in blocks per second.
mempool_status: Information about the current state of the Ethereum network's memory pool, including the number of transactions pending and queued.
num_proposals: The total number of proposals made within the Ethereum network.
daily_supply_change: The daily change in the total supply of Ethereum, measured in Ether.
burned_eth: The total amount of Ethereum that has been burned or destroyed within a certain timeframe.
total_staking_rewards: The cumulative amount of rewards distributed to validators for participating in the Ethereum network's proof-of-stake consensus mechanism.
avg_validator_reward: The average reward earned by individual validators on the Ethereum network.
total_supply: The total supply of Ethereum in circulation.
total_stake: The total amount of Ethereum staked by validators in the network.
avg_stake: The average amount of Ethereum staked per validator on the network.
seat_price: The price of a validator seat in the Ethereum network, indicating the cost or value associated with becoming a validator.
timestamp: The timestamp indicating the point in time when these network statistics were recorded, typically in Unix time format.
Layer 2
The Layer 2 endpoint provides analytical data about popular Layer 2 scaling solutions. (Note: Currently only Arbitrum and Optimism are supported.)
curl https://api.alterscope.org/data/blockchain/arbitrum -H "Authorization: Bearer <your_access_token>"
{
"status": true,
"data":
[
{
"validation_mechanism": "Optimistic Rollups",
"soft_finality": 2,
"hard_finality": 960,
"settlement_layer_finality": 604800,
"tx_per_sec_capacity": 40000,
"withdrawal_time_sec": 604800,
"tx_daily": 100000,
"tx_weekly": 700000,
"tx_monthly": 3000000,
"tvl_usd": 26800000000,
"fees_daily": 200000,
"fees_weekly": 1400000,
"fees_monthly": 6000000,
"avg_block_time": 0.25
},
{
"consensus_algorithm": "Optimistic Rollups",
"soft_finality": 2,
"hard_finality": 960,
"settlement_layer_finality": 604800,
"tx_per_sec_capacity": 40000,
"withdrawal_time_sec": 604800,
"tx_daily": 100000,
"tx_weekly": 600000,
"tx_monthly": 2900000,
"tvl_usd": 26750000000,
"fees_daily": 180000,
"fees_weekly": 1300000,
"fees_monthly": 5900000,
"avg_block_time": 0.3
}
]
}
validation_mechanism: The name of the architecture design how transactions are processed and validated on the Layer 2.
soft_finality: The time in seconds it takes for a transaction to reach soft finality. "Soft finality" refers to a state in a blockchain where a transaction is considered likely to be included in the final block, but there is still a small probability of it being reverted.
hard_finality: The time in seconds it takes a transaction to reach hard finality. Hard finality is a higher level of confidence in the irreversibility of transactions on layer 2, but have not yet reached finality on the underlying settlement layer.
settlement_layer_finality: The time in seconds it takes for a transaction to reach finality on the underlying settlement layer of the Layer 2.
tx_per_sec_capacity: The theoretical maximal transaction per second capacity.
tx_daily: The number of transactions that occurred in the past 24 hours.
tx_weekly: The number of transactions that occurred in the past 7 days.
tx_monthly: The number of transactions that occurred in the past 30 days.
tvl_usd: The amount of total value locked measured in USD.
fees_daily: The amount of daily fees measured in USD the chain generates.
fees_weekly: The amount of fees measured in USD generated by the chain in the past 7 days.
fees_monthly: The amount of fees measured in USD generated by the chain in the past 30 days.
avg_block_time: The average time for a new block to be published.
Last updated