₿ BTCFi API

Bitcoin + BTCFi data for AI agents via x402 micropayments

Block #935,932BTC $69,644RPC 🟢 Whistle

How it works

# 1. Query any endpoint curl https://btcfi.aiindigo.com/api/v1/fees # 2. Get 402 response with payment instructions # 3. Pay with USDC on Base or Solana # 4. Include payment proof, get data curl -H "X-Payment: <proof>" \ -H "X-Payment-Network: base" \ https://btcfi.aiindigo.com/api/v1/fees

24 Endpoints

GET /api/v1/fees

Recommended fees + USD estimates

$0.01
GET /api/v1/mempool

Mempool summary + recent txs

$0.01
GET /api/v1/address/{addr}

Address balance + stats

$0.01
GET /api/v1/address/{addr}/utxos

Unspent outputs

$0.01
GET /api/v1/tx/{txid}

Transaction details

$0.01
POST /api/v1/tx/broadcast

Broadcast signed tx

$0.05
GET /api/v1/block/latest

Latest blocks

$0.01
GET /api/v1/intelligence/fees

AI fee prediction (1h/6h/24h)

$0.02
GET /api/v1/intelligence/whales

Large tx detection + alerts

$0.02
GET /api/v1/intelligence/risk/{addr}

Address risk scoring

$0.02
GET /api/v1/intelligence/network

Network health analysis

$0.02
GET /api/v1/security/threat/{addr}

YARA-pattern threat analysis

$0.02
GET /api/v1/solv/reserves

SolvBTC supply + chain breakdown

$0.02
GET /api/v1/solv/yield

xSolvBTC APY + yield strategies

$0.02
GET /api/v1/solv/liquidity

Cross-chain liquidity distribution

$0.02
GET /api/v1/solv/risk

Multi-factor risk assessment

$0.02
POST /api/v1/zk/balance-proof

ZK proof: balance ≥ threshold

$0.03
POST /api/v1/zk/age-proof

ZK proof: UTXO age ≥ N blocks

$0.03
POST /api/v1/zk/membership

ZK proof: address in set

$0.03
POST /api/v1/zk/verify

Verify any ZK proof

$0.01
GET /api/v1/stream

SSE: blocks, fees, mempool

$0.01
GET /api/v1/stream/whales

SSE: whale tx alerts

$0.01
GET /api/v1/staking/status

Staking tier check

free
GET /api/health

System health + RPC status

free

Payment Networks

🔵 Base (Coinbase)

ERC-3009 USDC settlement. Fee-free via Coinbase facilitator.

Header: X-Payment-Network: base

🟣 Solana (NLx402)

Nonce-locked, hash-bound. Zero fees via PCEF nonprofit facilitator.

Header: X-Payment-Network: solana

Security

YARA-pattern threat analysis (PCEF-inspired) Wallet signature auth (Ed25519 + secp256k1) Encrypted responses (Curve25519 + XSalsa20-Poly1305) Nonce-based replay protection Tiered rate limiting with progressive backoff Decentralized RPC via Whistle Network

MCP Integration 27 tools

# Claude Desktop — add to claude_desktop_config.json { "mcpServers": { "btcfi": { "command": "npx", "args": ["@aiindigo/btcfi-mcp"], "env": { "SVM_PRIVATE_KEY": "your-solana-key" } } } } # npm: @aiindigo/btcfi-mcp # 27 tools: fees, mempool, address, tx, blocks, # intelligence, security, staking, solv protocol, # zk proofs, real-time streams

Built by AI Indigo · No tokens · No subscriptions · Payment IS authentication

Powered by mempool.space · Solv Protocol · Whistle Network · PCEF/NLx402