buy_credit
Buy prepaid credit for a bolthub provider in one payment, spendable across all its endpoints until exhausted, avoiding per-call Lightning transactions.
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.
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. |