Skip to content

Instantly share code, notes, and snippets.

@dapi
Created April 9, 2025 15:32
Show Gist options
  • Save dapi/8c456fae0bd083b8195263a73e0a150b to your computer and use it in GitHub Desktop.
Save dapi/8c456fae0bd083b8195263a73e0a150b to your computer and use it in GitHub Desktop.
--- BLOCK
Payload: {
"from_block":10000000,
"to_block":10120011,
"include_all_blocks":true,
"field_selection":{
"block":[
"number",
"hash",
"parent_hash",
"nonce",
"sha3_uncles",
"logs_bloom",
"transactions_root",
"state_root",
"receipts_root",
"miner",
"difficulty",
"total_difficulty",
"extra_data",
"size",
"gas_limit",
"gas_used",
"timestamp",
"uncles",
"base_fee_per_gas",
"blob_gas_used",
"excess_blob_gas",
"parent_beacon_block_root",
"withdrawals_root",
"withdrawals",
"l1_block_number",
"send_count",
"send_root",
"mix_hash"
]
}
}
fields: 28
- number: type=uint64
- hash: type=binary
- parent_hash: type=binary
- nonce: type=binary, nullable
- sha3_uncles: type=binary
- logs_bloom: type=binary
- transactions_root: type=binary
- state_root: type=binary
- receipts_root: type=binary
- miner: type=binary
- difficulty: type=binary, nullable
- total_difficulty: type=binary, nullable
- extra_data: type=binary
- size: type=binary
- gas_limit: type=binary
- gas_used: type=binary
- timestamp: type=binary
- uncles: type=binary, nullable
- base_fee_per_gas: type=binary, nullable
- blob_gas_used: type=binary, nullable
- excess_blob_gas: type=binary, nullable
- parent_beacon_block_root: type=binary, nullable
- withdrawals_root: type=binary, nullable
- withdrawals: type=binary, nullable
- l1_block_number: type=uint64, nullable
- send_count: type=binary, nullable
- send_root: type=binary, nullable
- mix_hash: type=binary, nullable
--- TRANSACTION
{
"from_block":20000000,
"to_block":20001001,
"transactions":[
{
"status":1
}
],
"include_all_blocks":true,
"field_selection":{
"transaction":[
"block_hash",
"block_number",
"from",
"gas",
"gas_price",
"hash",
"input",
"nonce",
"to",
"transaction_index",
"value",
"v",
"r",
"s",
"max_priority_fee_per_gas",
"max_fee_per_gas",
"chain_id",
"cumulative_gas_used",
"effective_gas_price",
"gas_used",
"contract_address",
"logs_bloom",
"type",
"root",
"status",
"sighash",
"y_parity",
"access_list",
"l1_fee",
"l1_gas_price",
"l1_gas_used",
"l1_fee_scalar",
"gas_used_for_l1",
"max_fee_per_blob_gas",
"blob_versioned_hashes"
]
}
}
fields: 35
- block_hash: type=binary
- block_number: type=uint64
- from: type=binary, nullable
- gas: type=binary
- gas_price: type=binary, nullable
- hash: type=binary
- input: type=binary
- nonce: type=binary
- to: type=binary, nullable
- transaction_index: type=uint64
- value: type=binary
- v: type=binary, nullable
- r: type=binary, nullable
- s: type=binary, nullable
- max_priority_fee_per_gas: type=binary, nullable
- max_fee_per_gas: type=binary, nullable
- chain_id: type=binary, nullable
- cumulative_gas_used: type=binary
- effective_gas_price: type=binary
- gas_used: type=binary
- contract_address: type=binary, nullable
- logs_bloom: type=binary
- type: type=uint8, nullable
- root: type=binary, nullable
- status: type=uint8, nullable
- sighash: type=binary, nullable
- y_parity: type=binary, nullable
- access_list: type=binary, nullable
- l1_fee: type=binary, nullable
- l1_gas_price: type=binary, nullable
- l1_gas_used: type=binary, nullable
- l1_fee_scalar: type=binary, nullable
- gas_used_for_l1: type=binary, nullable
- max_fee_per_blob_gas: type=binary, nullable
- blob_versioned_hashes: type=binary, nullable
------ LOGS
{
"from_block":20000000,
"to_block":20001001,
"logs":[
{
"topics":[
[
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
]
]
}
],
"include_all_blocks":true,
"field_selection":{
"log":[
"removed",
"log_index",
"transaction_index",
"transaction_hash",
"block_hash",
"block_number",
"address",
"data",
"topic0",
"topic1",
"topic2",
"topic3"
]
}
}
fields: 12
- removed: type=bool, nullable
- log_index: type=uint64
- transaction_index: type=uint64
- transaction_hash: type=binary
- block_hash: type=binary
- block_number: type=uint64
- address: type=binary
- data: type=binary
- topic0: type=binary, nullable
- topic1: type=binary, nullable
- topic2: type=binary, nullable
- topic3: type=binary, nullable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment