# graph network status

> Report node count, channel count, num_peers, and a few node aliases.

graph network status is a paid AI agent skill on Agensi by agent-bitcoin, in Web3 & Crypto. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [agent-bitcoin](https://www.agensi.io/creators/agent-bitcoin)
- Category: [Web3 & Crypto](https://www.agensi.io/skills/web3-crypto)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/graph-network-status
- Tags: web3, lightning-networklnd, bitcoin-sdk, devops

## About this skill

Standard node audits often miss the basic graph state needed to verify connectivity. This skill provides a snapshot of the Lightning Network graph and peer status from an LND node.

### What it does
- **Health check** verifies if the LND wallet is unlocked and responsive.
- **Peer tracking** reports the current number of active peer connections.
- **Graph metrics** retrieves total node and channel counts from the network.
- **Alias sampling** lists up to five node aliases to verify graph visibility.
- **Safety enforcement** prevents any accidental changes to channel or peer states.

### How it works
1. Check the node status using the Python SDK to confirm the wallet is unlocked.
2. Execute `getnetworkinfo` via the container CLI to pull high level network stats.
3. Call `describegraph` to calculate total nodes and edges in the local graph view.
4. Filter and format the output to display only counts and a small sample of aliases.

### Frameworks & tools
This skill uses the `agent-bitcoin` SDK and calls `lncli` within the `agent-payment-decision-lnd` Docker container. It is configured for regtest by default with optional mainnet overrides.

### Why this beats prompting it yourself
Writing manual bash overrides for LND inside a prompt often leads to verbosity or leaking sensitive pubkeys. This skill enforces a strict data filter that only returns counts and aliases, keeping your node's internal graph data clean and private.

### Use cases
- Verify a node is synced with the Lightning graph before sending payments.
- Check peer connectivity after a node restart or network change.
- Audit the size of a local regtest graph during development.

### Known limitations
Requires an unlocked LND node and Docker access. It cannot modify channel states or peer connections.

## Requires

- Python 3.10+
- agent-bitcoin package
- unlocked LND node.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the graph network status skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific problems does the Graph Network Status skill solve for LND node operators?

This skill audits your node's view of the Lightning Network, providing critical metrics on active peers, total network channels, and graph visibility without the risk of accidentally altering your node configuration.

### What are the technical requirements to use this skill?

The skill requires a running LND node within the 'agent-payment-decision-lnd' Docker container and access to the 'agent-bitcoin' SDK. It is designed for developers and operators working in regtest or mainnet environments.

### Does this skill expose any sensitive private data from my LND node?

Safety is a core feature; the skill is strictly read-only and uses a data filter to return only high-level counts and public aliases, preventing the leakage of sensitive internal pubkeys or channel details.

### Can I use this skill on both Bitcoin mainnet and regtest?

Yes, while configured for regtest by default to support development workflows, it includes optional overrides for mainnet environments.

### What is included in the purchase of this skill?

You receive the pre-configured AI skill designed for the agent-bitcoin framework, including the necessary logic to interface with the LND CLI and return formatted network snapshots.

### Can this skill be used to automatically add new peers if my count is low?

This skill is a diagnostic tool and does not have the permissions to open channels, manage peers, or move funds, ensuring it remains a safe auditing utility.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
