# pending channel status

> Report pending opens and closes with capacity, balances, and initiator.

pending channel 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-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pending-channel-status
- Tags: web3, lightning-network, bitcoin, lnd, node-management

## About this skill

Managing Lightning Network operations often involves waiting for blockchain confirmations without clear visibility into why a channel isn't active yet. This skill queries an unlocked LND node to provide a detailed status report on all channels in transition.

### What it does
- **Identify pending opens** by listing channels currently in the funding process including their specific block expiry.
- **Track closing states** by distinguishing between standard pending closes, waiting closes, and force closes.
- **Audit channel capacity** by extracting local and remote balances alongside total capacity for each pending entry.
- **Maturity tracking** by reporting the specific block height and remaining blocks until funds mature in force-close scenarios.
- **Initiator attribution** by identifying which peer started the channel open or close process.

### How it works
1. **Node check** verifies the LND node is reachable and the wallet is in an unlocked state.
2. **Data retrieval** executes a direct query for pending channel data across four distinct categories.
3. **State mapping** categorizes every entry into pending open, pending close, waiting close, or force close.
4. **Summary generation** calculates total counts and formats the technical details into a readable report.

### Frameworks & tools
The skill utilizes the `agent-bitcoin` SDK and `lncli` to interact with an LND node. It is configured for `regtest` by default but supports `mainnet` via environment variables.

### Why this beats prompting it yourself
Standard LLM prompts often fail to distinguish between the different types of pending Lightning states or forget to check for wallet-lock errors. This skill uses specific logic to map nested SDK objects to their respective channel lifecycle stages correctly.

### Use cases
- Audit why recently funded channels are not yet available for routing.
- Track the progress of force-closed channels and when their funds will return.
- Monitor the network for expiring channel funding attempts.
- Verify channel initiators for fee management and rebalancing planning.

### Known limitations
Requires a pre-configured and unlocked LND node. Does not support changing channel states or signing into external platforms.

## Requires

- Python 3.10+
- agent-bitcoin package
- unlocked LND node
- Read-only

## 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 pending channel 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

### How does this skill provide more clarity than a standard 'list channels' command?

This skill specifically deciphers the four distinct pending states (open, close, waiting close, and force close) and extracts critical data like block maturity heights and initiator status that standard node queries often bury in complex JSON outputs.

### Which AI agents or frameworks are compatible with this skill?

The skill is built using the agent-bitcoin SDK and is compatible with any AI agent framework that supports custom tool integration, provided the agent has secure network access to your LND node.

### What are the technical requirements to run this skill on my node?

You will need an active LND node (unlocked) with the REST or gRPC interface accessible, along with the necessary macaroon permissions to read channel and wallet information.

### Can I use this skill to monitor channels on Bitcoin mainnet?

Yes, while it defaults to regtest for development safety, you can easily toggle it to mainnet or testnet environments by adjusting the provided environment variables during setup.

### Will this help me track when my funds will be available after a force-close?

Yes, the skill includes logic to monitor force-close scenarios, specifically reporting the exact block height when your funds will be released and become spendable again.

### What is included in the skill package?

The purchase includes the production-ready skill logic, configuration templates for environment variables, and documentation for integrating the tool into your existing AI agent's workflow.

---

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.
