Sign In

@bolthub/cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bolthub/cli

CLI for the bolthub L402 API marketplace — search, discover, and call paid APIs from the terminal

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
20
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

@bolthub/cli

CLI for the bolthub tool directory. Search, explore, and call paid APIs from the terminal.

Install

npm install -g @bolthub/cli

Or run directly with npx:

npx @bolthub/cli search bitcoin

Commands

search - Find APIs

bolthub search bitcoin
bolthub search --tag finance
bolthub search                  # list all

info - API details

bolthub info btc-intel

Shows all endpoints, pricing models, and usage instructions.

call - Call an endpoint

bolthub call btc-intel "/v1/history/candles?timeframe=1h&limit=2"
bolthub call btc-intel /v1/market/snapshot --max-cost 10
OptionDescription
--method <METHOD>HTTP method (default: GET)
--max-cost <sats>Refuse invoices above this amount
--budget <sats>Total session spending limit
--body <json>JSON request body for POST/PUT/PATCH

receipts - Export and verify payments

bolthub receipts export --format csv --redact
bolthub receipts verify

export serializes your local receipt ledger (~/.bolthub/receipts.jsonl) to JSON or CSV; --redact strips preimages for a shareable expense report. verify runs the offline proof-of-payment checks on every receipt. export also takes --from/--to (ISO dates) and --file <path>.

Wallet Configuration

The CLI needs a Lightning wallet to pay for API calls. Set one of these environment variable pairs:

VariablesWalletSpeed
LND_REST_HOST + LND_MACAROONLND (recommended)<200ms
NWC_URINWC (bundled, no extra install)1-3s
LNBITS_URL + LNBITS_ADMIN_KEYLNbits<300ms
PHOENIXD_URL + PHOENIXD_PASSWORDPhoenixd (if you already run it)<200ms

License

MIT

Keywords

l402

FAQs

Package last updated on 10 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts