{"success":true,"name":"FastPath Bitcoin API","tagline":"Bitcoin RPC for EVM bots: fees, mempool intelligence, RBF plans, and Core v31 template signals. Zero custody.","optimizer":{"available":true,"status":200,"data":{"status":"ok"},"role":"shadow_template_optimizer","note":"Optimizer is health-checked here; endpoint-level template scoring is not exposed by this binary yet."},"optimizerCache":{"enabled":true,"configured":true,"ready":true,"source":"core_v31_optimizer_cache","mode":"live_cached","optimizerUrl":"http://127.0.0.1:8081/v1/template/optimize","baseline":{"enabled":true,"configured":true,"rpcUrl":"http://127.0.0.1:8332","ready":true,"cachedAt":"2026-07-11T04:15:24.654Z","cacheAgeMs":252954,"txidCount":6035,"timeoutSeconds":15,"lastError":null,"lastStatus":200,"lastDurationMs":555,"summary":{"selectedTxCount":6035,"height":957521,"previousBlockHash":"0000000000000000000186c58c93bcbde59c983f7f83308208e6bc0e640bfb99","weightLimit":4000000,"coinbaseValue":313626105}},"baselineComparison":{"available":true,"reason":"baseline and optimized txid sets are available for the current cache snapshot","sameTip":true,"optimizedTxidCount":4000,"baselineTxidCount":6035,"overlapTxidCount":3990,"optimizedOnlyTxidCount":10,"baselineOnlyTxidCount":2045,"optimizedHeight":957521,"baselineHeight":957521,"previousBlockHash":"0000000000000000000186c58c93bcbde59c983f7f83308208e6bc0e640bfb99"},"cachedAt":"2026-07-11T04:17:38.790Z","cacheAgeMs":118818,"optimizedTxidCount":4000,"cacheIntervalSeconds":60,"timeoutSeconds":240,"request":{"use_optimizer":true,"max_tx_count":4000,"min_fee_rate_sat_vb":1,"include_raw_hex":false},"cycleCount":73,"lastError":null,"lastStatus":200,"lastRefreshStartedAt":"2026-07-11T04:15:23.979Z","lastRefreshFinishedAt":"2026-07-11T04:17:38.790Z","currentRefreshStartedAt":"2026-07-11T04:18:24.009Z","refreshInProgress":true,"lastDurationMs":134811,"lastTemplateSummary":{"selectedTxCount":4000,"baseline":{"tx_count":2213,"total_fees":957817,"total_weight":3995720},"optimized":{"tx_count":4000,"total_fees":980705,"total_weight":2828669},"height":957521,"previousBlockHash":"0000000000000000000186c58c93bcbde59c983f7f83308208e6bc0e640bfb99","weightLimit":4000000,"coinbaseValue":313480705},"receipt":{"present":true,"schema":"bench-receipt/1","keyId":"08f55b7f4f76bd21","alg":"Ed25519"}},"directCheckConfigured":true,"directCheckMode":"optimizer_cache","payment":{"model":"x402 pay-per-request","customerApiKeys":false,"payTo":"0x0300E73759B357ceeE5A248d1801eCb8abf7A1d4","networks":[{"network":"eip155:8453","label":"Base","asset":"default USDC for network"},{"network":"eip155:137","label":"Polygon","asset":"default USDC for network"},{"network":"eip155:42161","label":"Arbitrum","asset":"default USDC for network"},{"network":"eip155:480","label":"World","asset":"0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"}],"note":"Paid routes return HTTP 402 with a Payment-Required challenge before a bot spends."},"pricingUsdc":[{"price":"free","routes":["GET /v1/template/health","GET /v1/template/capabilities","GET /v1/template/cache-stats"],"bestFor":"service discovery, status, docs, and example responses"},{"price":"0.001","routes":["POST /v1/rpc","GET /v1/block-height","GET /v1/fee-estimate","GET /v1/balance/:address","GET /v1/tx/:txid","GET /v1/mempool/*"],"bestFor":"basic Bitcoin reads and high-volume monitoring"},{"price":"0.002","routes":["GET /v1/utxos/:address"],"bestFor":"wallet spend checks and coin-selection preparation"},{"price":"0.005","routes":["GET /v1/mempool/stream-ticket"],"bestFor":"short-lived WebSocket access for live mempool events"},{"price":"0.01","routes":["POST /v1/template/check","POST /v1/template/fee-ladder","POST /v1/template/bump-plan","POST /v1/bitcoin/insight"],"bestFor":"decision-oriented Core v31 and fee intelligence"},{"price":"0.05","routes":["POST /v1/template/batch-check"],"bestFor":"checking up to 10 txids in one paid request"}],"whatBotsCanAsk":["What fee should I use for the next block, normal confirmation, or cheap confirmation?","Will this transaction likely make the current optimized template?","Should I wait, RBF bump, CPFP, or rebroadcast?","Is this address spendable, pending, or already congested in the mempool?","Can I read Bitcoin block height, fee, balance, and tx data with Ethereum-style JSON-RPC?"],"exposedSafely":["single tx template check","batch tx template check capped at 10 txids","fee ladder by target block count","RBF/CPFP bump plan","unified Bitcoin insight","Web3 JSON-RPC fastpath_* methods","relay for user-signed raw replacement transactions"],"notExposed":["raw mempool dump","full optimized block template","private cluster internals beyond requested tx","server-side signing, custody, or key storage"],"limits":{"batchCheckMaxTxids":10,"streamTicketTtlSeconds":600,"customerAuth":"x402 only"},"jsonRpc":{"endpoint":"/v1/rpc","methods":["fastpath_templateHealth","fastpath_templateCheck","fastpath_templateBatchCheck","fastpath_feeLadder","fastpath_bumpPlan","fastpath_addressInsight","fastpath_bitcoinInsight"],"requestExample":{"jsonrpc":"2.0","id":1,"method":"fastpath_feeLadder","params":[{"targetBlocks":6}]}},"rest":{"endpoints":["POST /v1/template/check","POST /v1/template/batch-check","POST /v1/template/fee-ladder","POST /v1/template/bump-plan","POST /v1/bitcoin/insight","GET /v1/mempool/stream-ticket","GET /v1/template/cache-stats"],"insightRequestExample":{"txid":"PASTE_TXID","address":"bc1q...","targetBlocks":6,"action":"analyze"},"signedBroadcastRequestExample":{"txid":"PASTE_ORIGINAL_TXID","action":"broadcast_signed_replacement","signedReplacementHex":"02000000..."}},"examples":{"jsonRpcCalls":["provider.send('fastpath_templateCheck', [{ txid }])","provider.send('fastpath_bitcoinInsight', [{ txid, targetBlocks: 6 }])","provider.send('fastpath_bumpPlan', [{ txid, targetSatVb: 25 }])"],"templateCheckLiveCachedResponse":{"success":true,"txid":"PASTE_TXID","source":"core_v31_optimizer_cache","mode":"live_cached","inOptimizedTemplate":true,"inBaselineTemplate":false,"baselineComparisonAvailable":true,"optimizerAdvantage":true,"cachedAt":"2026-07-11T04:19:37.608Z","comparison":{"available":true,"optimizedOnlyTxidCount":42,"overlapTxidCount":600,"baselineOnlyTxidCount":25},"note":"Live cached lookup from the latest optimizer template plus Core getblocktemplate baseline. optimizerAdvantage means this tx is in the optimized set and absent from Core baseline."},"feeLadderResponse":{"success":true,"targetBlocks":6,"ladder":{"urgent":{"satVb":25,"useWhen":"next block or time-sensitive payment"},"normal":{"satVb":12,"useWhen":"standard confirmation target"},"cheap":{"satVb":5,"useWhen":"non-urgent payment"}}},"bitcoinInsightResponse":{"success":true,"verdict":"healthy_for_target","summary":"Effective fee rate is above the target. Monitor confirmations; no bump needed.","bump":{"available":true,"method":"rbf_signed_replacement","signsOrCustodiesFunds":false}}},"timestamp":1783743577608}