alloy
alloy copied to clipboard
[Feature] Add methods to retrieve full_blocks and full_blocks_with_txs in `watch` and `subscribe` methods.
Component
provider, pubsub
Describe the feature you would like
Motivation
Currently, the watch_blocks
methods only returns block hashes and subscribe_blocks
returns complete blocks but not with transaction bodies.
Solution
Add the following methods:
-
watch_full_blocks
which returns complete block bodies. -
watch_full_blocks_with_txs
, which returns the block body with the tx objects in that block. -
subscribe_blocks_with_txs
which returns the block body with the tx objects in that block.
Additional context
No response