-
Hey, I'm not sure if it is a bug or I am missing something. In v5.7.2, we can call provider.getBlockWithTransactions but it does no longer work in v6.0.8. Error: provider.getBlockWithTransactions is not a function The provider is well initialized in v6 with while it is done in v5 with I do not see anything related to it in v6 doc. Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Any updates on that? I am having a similar issue. |
Beta Was this translation helpful? Give feedback.
-
You use See: https://docs.ethers.org/v6/api/providers/#Block-prefetchedTransactions |
Beta Was this translation helpful? Give feedback.
You use
provider.getBlock(tag, true)
and the result will have ablock.prefetchedTransactions
on it. :)See: https://docs.ethers.org/v6/api/providers/#Block-prefetchedTransactions