Skip to content

V6 does not provide getBlockWithTransactions ? #3849

Answered by ricmoo
maxper4 asked this question in Q&A

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

You must be logged in to vote
1 reply
@ricmoo

You must be logged in to vote
4 replies
@MakisChristou

@ricmoo

@MakisChristou

@alko89

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