-
Notifications
You must be signed in to change notification settings - Fork 10
feat(ui): add monad testnet to list of testnet networks #120
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
Conversation
|
@stevedylandev MonadExplorer is sourcify based and the verification url for MonadExplorer is No API key needed for MonadExplorer |
|
@stevedylandev, thanks for this! I think monadexplorer supports Let me know how it goes! |
|
Hey all! Unfortunately still having some issues I've tried some example API routes but still get an error message that an API key is required. Try visiting the root domain We could use the sourcify endpoint as an alternative but would require building a new method/class outside of the etherscan one we already have. |
|
Little more info:
|
|
Sorry for the confusion For Monadscan explorer, the Etherscan v2 endpoint for the above example would be as follows: The v2 api allows setting the |
|
Ah no worries! That helps a bunch, I'm getting closer but now I just need to get / create a truly verified contract (one I provided earlier is only half verified because of similar source code) |
Thanks! Yep that should be it, we support etherscan v2 api. I will get it sorted tomorrow ;) |
|
Had to jump through some hoops but got it working! One thing worth mentioning is our current setup for fetching verified contracts only works with the explorer that it's verified with. Monad is mostly pointing to Sourcify and if you verify a contract there instead of etherscan the API won't pick up on it and say it's not verified. Had to verify it through Monadscan (etherscan) first in order for it to go through. Will push up the changes though and we should be good to go! |
|
Test contract for those who want to try:
|
pasevin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor, but is triggering my ocd :)
| rpcUrl: viemMonadTestnet.rpcUrls.default.http[0], | ||
| explorerUrl: 'https://testnet.monadexplorer.com', | ||
| apiUrl: 'https://api.etherscan.io/v2/api', | ||
| primaryExplorerApiIdentifier: 'mondad-explorer', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there is a typo here
Description
This PR adds the Monad testnet as a testnet option using the following config
Related Issue
N/A
Motivation and Context
Helps encourage usage from the Monad community in preparation for mainnet
How Has This Been Tested?
✅ - UI displays network and config correctly
❌ - I'm having issues getting the
https://api-testnet.monadexplorer.com/apito work. I keep getting an error message about an invalid API key even though it's fresh from Etherescan.io. Exact error:{ "status": "0", "message": "NOTOK", "result": "Invalid API Key (#err2)|MONAD1" }If someone can also test their API key it might help us figure out if we need to create a ticket with the Monad explorer. My explorer API key works with other networks so I'm afraid it is an issue with Etherscan <> Mondscan
Screenshots (if appropriate):
Types of changes
Checklist: