Skip to content

How do I get full log from a Provider. #17209

Closed Answered by mattsse
0xDmtri asked this question in Help
Discussion options

You must be logged in to vote

the logic isn't super complex, it's just a bunch of conversions and checks for certain fields,

you only need the transactions as well, see

if let Some((block, receipts)) = self.load_block_and_receipts(block_id).await? {
let block_number = block.number();
let base_fee = block.base_fee_per_gas();
let block_hash = block.hash();
let excess_blob_gas = block.excess_blob_gas();
let timestamp = block.timestamp();
let blob_params = self.provider().chain_spec().blob_params_at_timestamp(timestamp);
return block
.body()
.transactions()
.iter()
.zip(receipts.iter(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0xDmtri
Comment options

Answer selected by mattsse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants