Lightning liquidity prices (Magma)
magma_liquidityBefore you buy inbound liquidity for a Lightning node, check what it costs right now. Get the live Magma price, browse current offers, or look up a node. No Node.js or GraphQL setup required. Paid from the credit balance. 1 sat ≈ $0.0006 from the credit balance.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "magma_liquidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | quote, offer_book, or node. | quote |
| max_sats | No | Most this call may charge. Minimum 1. A higher total charges nothing. | |
| connection_uri | No | Node pubkey or pubkey@host:port. Required when query is node. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | approval_required, limit_exceeded, or insufficient_balance. | |
| paid | No | ||
| which | No | per_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats. | |
| status | No | ||
| message | No | ||
| quoteId | No | ||
| results | No | Search rows when this is a search result. | |
| totalCost | No | ||
| totalSats | No | ||
| approvalUrl | No | Page where the person approves this exact price. |