Skip to content

V6 does not provide getBlockWithTransactions ? #3849

Answered by ricmoo
maxper4 asked this question in Q&A
Discussion options

You must be logged in to vote

You use provider.getBlock(tag, true) and the result will have a block.prefetchedTransactions on it. :)

See: https://docs.ethers.org/v6/api/providers/#Block-prefetchedTransactions

Replies: 2 comments 5 replies

Comment options

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

Comment options

You must be logged in to vote
4 replies
@MakisChristou
Comment options

@ricmoo
Comment options

@MakisChristou
Comment options

@alko89
Comment options

Answer selected by ricmoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants