# payment status tracking

> Report in-flight, succeeded, or failed status, amount, fee, and a settled preimage.

payment status tracking is a paid AI agent skill on Agensi by agent-bitcoin, in APIs & Backend. 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: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/payment-status-tracking
- Tags: api, lightning-network, lnd, bitcoin, blockchain

## About this skill

Monitoring Lightning Network payments requires manual CLI work or complex custom scripts. This skill provides instant visibility into LND payment states, allowing you to audit transaction outcomes without manual command-line intervention.

### What it does
- **Status Mapping** translates complex LND states into clear in-flight, succeeded, or failed categories.
- **Payment Tracking** retrieves real-time updates for specific payment hashes including settled preimages.
- **Invoice Lookup** verifies the status of incoming invoices using hex hashes or payment requests.
- **History Retrieval** pulls the last 10 payments to provide a snapshot of recent node activity.
- **Detail Extraction** reports specific metadata like exact fees, amounts, and failure reasons.

### How it works
1. **Initialize Client** using the SDK to verify the LND node is unlocked and accessible.
2. **Decode Requests** to extract payment hashes from BOLT11 strings when necessary.
3. **Query Node** via containerized `lncli` commands to fetch raw transaction data.
4. **Normalize Data** by mapping internal LND statuses like `ACCEPTED` or `CANCELED` to human-readable states.

### Frameworks & tools
This skill uses the `agent-bitcoin` SDK and communicates with `LND` nodes running in Docker containers. It defaults to `regtest` environments but supports mainnet via explicit environment variables.

### Why this beats prompting it yourself
Writing reliable wrappers for `lncli` tracking is error-prone due to the variety of status codes and hex encoding requirements. This skill handles the mapping logic and error states like locked wallets automatically, ensuring consistent reporting formats.

### Use cases
- Check if a specific Lightning payment was settled or is still in-flight.
- Retrieve the settled preimage for a successful payment to provide proof of payment.
- Audit the last 10 transactions to calculate total fees spent recently.
- Verify why a payment failed by extracting the `failure_reason` field.

### Known limitations
Requires an unlocked LND node running in a specific Docker container named `agent-payment-decision-lnd`. Limited to retrieving the 10 most recent payments.

## 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 payment status tracking 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 problem does the Payment Status Tracking skill solve?

This skill automates the monitoring of Lightning Network transactions, providing human-readable status updates, settled preimages, and failure reasons without requiring manual CLI commands or custom scripting.

### Which AI agent frameworks and node types are compatible with this skill?

The skill is built for the agent-bitcoin SDK and is designed to work with LND nodes running in Docker environments, specifically supporting regtest and mainnet configurations.

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

You will receive the integrated logic for status mapping, automated payment lookups, and transaction history retrieval, along with the necessary configurations to connect to your LND node.

### Do I need to manually decode payment hashes or status codes?

No, the skill includes a normalization layer that automatically translates internal LND states (like ACCEPTED or CANCELED) into clear categories like in-flight, succeeded, or failed.

### Are there any specific environment requirements or limitations I should be aware of?

The skill requires an unlocked LND node running in a Docker container named 'agent-payment-decision-lnd' and currently supports retrieving the 10 most recent transactions.

### How does this handle node errors like a locked wallet or connection timeout?

By using the agent-bitcoin SDK, the skill automatically detects common connection issues, such as a locked wallet, and provides consistent reporting formats that are easier for AI agents to process than raw CLI output.

---

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.
