# fee estimation routing

> Report fee rates and route fee breakdowns without sending a payment.

fee estimation routing 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/fee-estimation-routing
- Tags: web3, bitcoin, lightning-network, lnd, api

## About this skill

Estimating Bitcoin and Lightning Network transaction costs often requires trial and error or dangerous dry runs. This skill provides a safe way to query fee rates and route costs directly from an LND node without risking funds.

### What it does
- **On-chain estimation** provides specific `fee_sat` and `sat_per_vbyte` metrics for any address and amount.
- **Lightning route analysis** retrieves path-finding data including `total_fees` and `total_fees_msat` for specific destinations.
- **Hop-level breakdown** lists individual `fee_msat` charges for every node in a proposed payment path.
- **Request decoding** extracts destination pubkeys and amounts from BOLT11 invoices to automate route queries.
- **Network safety** strictly limits operations to read-only fee queries, preventing accidental broadcasts or channel state changes.

### How it works
1. **Node Check** verifies connectivity and confirms the LND wallet is unlocked via `get_info`.
2. **Invoice Decoding** parses the payment request to identify the destination pubkey and satoshi amount.
3. **Fee Querying** executes `estimatefee`, `queryroutes`, or `estimateroutefee` via the `agent-bitcoin` environment.
4. **Data Reporting** formats the raw JSON response into a readable breakdown of sats, msats, and vByte rates.

### Frameworks & tools
This skill requires an unlocked LND node and the `agent-bitcoin` SDK. It executes commands via `docker exec` against the `agent-payment-decision-lnd` container using `lncli`.

### Why this beats prompting it yourself
Generic prompts often hallucinate fee logic or fail to handle the specific CLI syntax required for LND containers. This skill enforces a read-only workflow, ensuring you never accidentally trigger a payment while simply trying to calculate its cost.

### Use cases
- Calculate on-chain transaction priority costs before sweep operations.
- Audit Lightning path efficiency by comparing multi-hop routing fees.
- Verify invoice feasibility by checking if a valid route exists for the requested amount.

### Known limitations
Requires an unlocked LND node. Default behavior is locked to regtest unless mainnet is explicitly enabled via environment variables.

## 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 fee estimation routing 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 prevent accidental fund transfers while checking fees?

This skill provides safe, read-only fee estimation and route analysis for Bitcoin and Lightning transactions, eliminating the risk of accidental fund broadcasts during the cost-discovery phase.

### What specific LND environments and SDKs are required to use this skill?

It is specifically designed for environments using an unlocked LND node and the agent-bitcoin SDK, executing commands via the agent-payment-decision-lnd container.

### Can the skill automatically parse Lightning invoices, or do I need to input the destination manually?

Yes, the skill includes a request decoding feature that automatically extracts destination pubkeys and satoshi amounts from BOLT11 invoices to streamline route queries.

### Does this skill support Bitcoin mainnet, or is it restricted to test environments?

By default, the skill is locked to regtest for safety, but it can be configured for mainnet use by adjusting your environment variables.

### What is included in the purchase of the fee estimation routing skill?

You receive the production-ready skill package, including the logic for on-chain estimation, hop-level breakdowns, and invoice decoding, plus documentation for integration.

### What specific fee metrics does the route analysis provide?

The skill provides a granular breakdown including total_fees_msat, sat_per_vbyte, and individual fee_msat charges for every node (hop) in a proposed Lightning path.

---

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.
