- Home
- Skills
- APIs & Backend
- payment status tracking
payment status tracking
Report in-flight, succeeded, or failed status, amount, fee, and a settled preimage.
$9
payment status tracking
Example session with this skill installed
Check the status of payment hash 8f3d6a2b5e1c4d9a0f7b8e9d2c1a3b4f5e6d7c8b9a0f1e2d3c4b5a6f7e8d9c0b and list my recent payments.
- Read your context and instructions
- Compiled the payment status tracking
I have retrieved the status for the specified payment hash and fetched the 10 most recent transactions from your LND node.
Lightning Payment Report
Target Payment Status
| Field | Value |
|---|---|
| Payment Hash | 8f3d6a2b5e1c4d9a0f7b8e9d2c1a3b4f5e6d7c8b9a0f1e2d3c4b5a6f7e8d9c0b |
| Status | SUCCEEDED |
| Amount (msat) | 500000 |
| Fee (msat) | 150 |
| Preimage | a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6a7b8c9d0e1f2 |
Recent Payment History (Last 10)
| Date/Time | Status | Amount (msat) | Fee (msat) |
|---|---|---|---|
| 2023-10-27 14:20:10 | SUCCEEDED | 100000 | 50 |
| 2023-10-27 14:15:22 | FAILED | 250000 | 0 |
| 2023-10-27 14:02:45 | SUCCEEDED | 15000 | 12 |
| 2023-10-27 13:55:01 | IN-FLIGHT | 1000000 | 0 |
| 2023-10-27 13:40:12 | SUCCEEDED | 50000 | 10 |
| 2023-10-27 13:30:55 | SUCCEEDED | 22000 | 5 |
| 2023-10-27 13:12:04 | FAILED | 500000 | 0 |
| 2023-10-27 12:45:30 | SUCCEEDED | 12000 | 2 |
| 2023-10-27 12:20:15 | SUCCEEDED | 85000 | 45 |
| 2023-10-27 12:05:00 | SUCCEEDED | 30000 | 15 |
Next steps
- If the in-flight payment remains stuck, use
trackpaymentagain in 5 minutes. - Check the
failure_reasonfor the failed 250,000 msat payment to debug routing issues. - Verify your channel liquidity if you plan to retry the failed payments.
Connects securely to your tools. The creator never sees your data.
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
- Initialize Client using the SDK to verify the LND node is unlocked and accessible.
- Decode Requests to extract payment hashes from BOLT11 strings when necessary.
- Query Node via containerized
lnclicommands to fetch raw transaction data. - Normalize Data by mapping internal LND statuses like
ACCEPTEDorCANCELEDto 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_reasonfield.
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.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 11 days ago
- Software
Python 3.10+agent-bitcoin packageunlocked LND nodeRead-only
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.