-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offer anvil_metadata
RPC
#6221
Comments
sgtm! we can easily add this, will do if no one picks it up |
Doesn't foundry/crates/anvil/src/eth/api.rs Line 1662 in 86f3d18
|
metadata includes more info and NodeInfo is standard format we can just add a new type + call |
All I am really doing is checking to see if the connected is a fork; I supposed to existence of One nice thing about the |
fyi @Evalir this would be super simple to add |
yep there's utility to this, so let's go and add it |
Component
Anvil
Describe the feature you would like
I would like the same feature from Hardhat as this: https://hardhat.org/hardhat-network/docs/reference#hardhat_metadata
This way, I can easily perform verifications on the forked network without relying on genesis block hashes or anything weird.
It is useful metadata at the node level in general.
Additional context
No response
The text was updated successfully, but these errors were encountered: