Lightning Invoice Policy Check
lightning_invoice_policyCheck a Bitcoin mainnet BOLT11 invoice against the exact amount, expected payee public key and minimum time remaining before you approve payment. Paid per call. Price: 8 sats or US$0.008 (USDC) per call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_policy": "<invoice_policy>"
},
"name": "lightning_invoice_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| l402 | No | Optional. After paying the Lightning invoice: '<token>:<preimage>'. | |
| pass | No | Optional. A Diamond budget token (dp_...) that your user approved once (from US$0.89; USDC or other Base tokens, or Lightning) or that you funded with the free diamond_budget tool. Each call deducts its price; no wallet needed in the agent. | |
| pay_with | No | Optional. 'lightning' requests a BOLT11 invoice and a token when Diamond can receive Lightning payments. | |
| invoice_policy | Yes | invoice|expected_msat|min_remaining_seconds|payee_public_key. Seconds 0–86400. Enter the payee's 66-character Lightning public key. |