Replies: 1 comment
-
You should be able to pass a blockHash in as a blockTag. Keep in mind that if a backend does not support it, it is (unfortunately) silently ignored and |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Feature
Most json rpc relays such as Infura and Alchemy support EIP-1898, however as far as I can tell there's no way in ethers to use the
blockHash
on the supported methods as onlyblockTag
(i.e. block number) is supported.Add support all methods that EIP-1898 affects:
Code Example
For example say a dev wants to query contract state at a specific
blockNumber
, they can do so with the currentblockTag
implementation as follows:Similarly they may want to query by
blockHash
and they should be able to do so as follows:Beta Was this translation helpful? Give feedback.
All reactions