buy_credit
Buy prepaid credit for a bolthub provider to pay once for a sats budget spendable across all of that provider's endpoints, avoiding per-call payments.
Instructions
Buy prepaid CREDIT for a bolthub provider: pay ONCE for a sats budget spendable across ALL of that provider's endpoints, then call_api to any of them draws the credit with no further Lightning payment until it runs out. Use this when you'll call SEVERAL of one provider's endpoints — sum their costs and buy that much credit in one payment. Credit is face-value (the provider charges exactly the sats you ask for, no discount tiers) and per-provider: it never covers a different provider (you'd buy separate credit for each). Unused credit at expiry is non-refundable, so size it to what you expect to spend.
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": {
"slug": "<slug>",
"path": "<path>",
"credit_sats": "<credit_sats>"
},
"name": "buy_credit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Any endpoint path of the provider to buy against (e.g. '/v1/history/candles'); the credit covers all of the provider's endpoints | |
| slug | Yes | The provider's API slug (e.g. 'btc-intel') | |
| credit_sats | Yes | Amount of credit to buy in sats (charged at face value) | |
| max_cost_sats | No | Maximum sats to pay for the credit. If the price exceeds this, the purchase is refused and nothing is paid. |