Skip to content

Releases: SatoshiAPI/satoshi-btc-api

v2.0.0 — First Public Release

22 Mar 22:28

Choose a tag to compare

⚡ Satoshi BTC Intelligence API v2.0

First public release. Live on mainnet at api.satoshiapi.io.

Features

  • Native L402 macaroon authentication (standard compliant)
  • 5 paid endpoints: /price, /mempool, /blockheight, /sentiment, /signal
  • Free /health endpoint
  • Per-IP rate limiting (60 req/min)
  • Rotating log files
  • 300s invoice expiry
  • Compatible with Alby, LNC, lsat-js, l402-python, and any standard L402 client

Stack

  • Python 3.9+ (stdlib HTTP server)
  • LND REST API for invoice creation and verification
  • pymacaroons for credential minting
  • No Aperture dependency

Usage

curl -i https://api.satoshiapi.io/price
# Pay the Lightning invoice, then:
curl -H "Authorization: L402 <macaroon>:<preimage>" https://api.satoshiapi.io/price

See README for full docs and examples.