devp2p-peer-discovery
Skill by Nethereum
Helps .NET developers find Ethereum peer addresses with Nethereum.DevP2P when they do not yet have an enode URL. It covers discv4, discv5, DNS ENR-tree lookup, a persistent node key and a peer cache.
Install devp2p-peer-discovery
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Nethereum/Nethereum /tmp/Nethereum && mkdir -p ~/.claude/skills && cp -r /tmp/Nethereum/plugins/nethereum-skills/skills/devp2p-peer-discovery ~/.claude/skills/devp2p-peer-discoveryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Nethereum/Nethereum /tmp/Nethereum && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Nethereum/plugins/nethereum-skills/skills/devp2p-peer-discovery ~/.gemini/antigravity-cli/skills/devp2p-peer-discoveryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install devp2p-peer-discovery in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
devp2p-peer-discovery is an agent skill that explains how to find Ethereum peers with the Nethereum.DevP2P package for .NET. It covers discv4 Kademlia UDP discovery, discv5 authenticated discovery, and DNS ENR-tree bootstrapping from EIP-1459. It also shows how to keep a stable node identity and a cache of reliable peers across restarts.
The skill is for developers who start a node without any enode:// URL and need to discover peers first. Discovered enodes can then be dialed with the devp2p-peer-connect skill, using StaticPeerConnector. The source notes that some parts, including the high-level harvester and PersistentPeerCache, are verified from README text rather than end-to-end tests.
Written from the project's SKILL.md and checked against it.
What it can do
- discv5 quickstartStarts a discv5 listener on mainnet with Discv5Discovery.StartMainnet and reports discovered enodes.
- discv4 ping/pongShows the signed UDP bonding step between two Discv4Listener instances on loopback.
- Discv4 harvesterBonds with seed enodes via PeerDiscoveryService.DiscoverAsync and returns discovered enodes.
- DNS ENR-tree resolutionWalks an enrtree:// URL into a flat list of enode URLs with EnrTreeResolver.ResolveAsync.
- Persistent node keyLoads or creates a stable node key with NodeKeyStore.LoadOrCreate so the node id survives restarts.
- Persistent peer cacheDescribes PersistentPeerCache, which records dial success and failure and returns preferred enodes.
What you need
- .NET runtime
- Nethereum.DevP2P NuGet package
- UDP reachability on the discovery port
Try asking
- Show me how to find Ethereum mainnet peers with discv5 in .NET
- Help me keep the same node id across restarts using NodeKeyStore
- How do I resolve an enrtree:// URL into enode addresses with Nethereum?
Good to know
- The high-level discv4 harvester is not covered by an end-to-end test in the source.
- PersistentPeerCache is described only in README prose, without a method signature.
- Discv5Discovery does not dispose the listener, so the caller must dispose it.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/nethereum-skills/skills/devp2p-peer-discovery/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to devp2p-peer-discovery
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
devp2p-peer-discovery: common questions
Do I need an enode URL before I can use this skill?
No. The skill is for finding peers when you do not yet have an enode:// URL. Dialing a known peer is covered by the devp2p-peer-connect skill.
Why should I persist my node key?
A node id that changes on every restart means remote peers cannot durably trust it. NodeKeyStore.LoadOrCreate keeps the same key across runs.
Which discovery method should I start with?
The source suggests Discv5Discovery.StartMainnet for the least setup on mainnet. Discv4Listener with PeerDiscoveryService suits older clients or finer control over bonding.
How do I install devp2p-peer-discovery?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is devp2p-peer-discovery free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is devp2p-peer-discovery safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to devp2p-peer-discovery?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
