{"components":{"schemas":{"GenericApiResponse":{"additionalProperties":true,"properties":{"error":{"type":"string"},"ok":{"type":"boolean"}},"type":"object"},"HealthResponse":{"properties":{"auth_required":{"type":"boolean"},"ok":{"type":"boolean"},"protocol_version":{"type":"string"},"signing_keys_loaded":{"type":"boolean"},"uptime_secs":{"type":"integer"},"verify_only":{"type":"boolean"},"version":{"type":"string"}},"required":["ok","version","protocol_version","verify_only","signing_keys_loaded","uptime_secs"],"type":"object"},"Http402ChallengeResponse":{"properties":{"amount_love":{"type":"string"},"network":{"enum":["mainnet","testnet"],"type":"string"},"payment_hash_hex":{"type":"string"},"protocol":{"type":"string"},"rails":{"type":"object"},"resource":{"type":"string"},"status":{"const":402,"type":"integer"}},"required":["status","protocol","resource","network","amount_love","payment_hash_hex","rails"],"type":"object"},"Http402VerifyRequest":{"properties":{"network":{"enum":["mainnet","testnet"],"type":"string"},"payment_hash_hex":{"type":"string"},"ticks":{"type":"integer"},"tip_hex":{"type":"string"},"token_hex":{"type":"string"},"unit_price_base_units":{"type":"integer"}},"type":"object"},"McpRpcRequest":{"properties":{"id":{"oneOf":[{"type":"string"},{"type":"integer"}]},"jsonrpc":{"const":"2.0","type":"string"},"method":{"enum":["initialize","ping","tools/list","tools/call","resources/list","resources/read"],"type":"string"},"params":{"type":"object"}},"required":["jsonrpc","method"],"type":"object"},"ProblemDetails":{"properties":{"detail":{"type":"string"},"error":{"type":"string"},"status":{"type":"integer"},"title":{"type":"string"},"type":{"format":"uri","type":"string"}},"required":["type","title","status","detail"],"type":"object"},"SwapCompileRequest":{"properties":{"amount_love":{"type":"string"},"direction":{"enum":["btc_to_love","love_to_btc"],"type":"string"},"love_claim_address":{"type":"string"},"love_network":{"enum":["mainnet","testnet"],"type":"string"},"love_timeout_blocks":{"minimum":12,"type":"integer"},"payment_hash_hex":{"maxLength":64,"minLength":64,"type":"string"},"rail":{"enum":["btc_onchain","lightning_bolt11","solana_htlc","evm_htlc"],"type":"string"}},"required":["rail","payment_hash_hex","amount_love","love_claim_address"],"type":"object"},"SwapVerifyRequest":{"properties":{"btc_address":{"type":"string"},"love_network":{"enum":["mainnet","testnet"],"type":"string"},"payment_hash_hex":{"maxLength":64,"minLength":64,"type":"string"},"preimage_hex":{"type":"string"}},"required":["payment_hash_hex"],"type":"object"}}},"info":{"contact":{"email":"commons@newsatoshi.org","name":"Newsatoshi Commons","url":"https://commons.newsatoshi.org/contact"},"description":"Machine-readable REST + Streamable HTTP MCP + HTTP 402 PayWord + Multi-Chain (BTC, Lightning, Solana, Base/EVM) SHA-256 HTLC Atomic Swap interface for Newsatoshi (LOVE) and NEWSATOSHI/2.1 STARK covenants.","license":{"name":"MIT","url":"https://github.com/theguysaccount/newsatoshi-commons/blob/main/LICENSE"},"title":"Newsatoshi Commons & Agent Transaction API","version":"0.11.0","x-deprecation-policy":"Minimum 90-day advance notice via HTTP Deprecation and Sunset headers before retiring any endpoint or schema field.","x-versioning-policy":"https://commons.newsatoshi.org/docs#versioning"},"openapi":"3.1.0","paths":{"/api/actions/verify-anchor":{"post":{"description":"Cross-checks a recorded Commons anchor hash against live Newsatoshi L1 seed nodes.","operationId":"verifyL1Anchor","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"On-chain anchor verification","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Public live L1 cross-check of a Commons state-root anchor against /api/lock?hash="}},"/api/actions/verify-stark":{"post":{"description":"Re-runs Winterfell 0.13 FRI verification on a stored STARK proof artifact with pre-verify integer domain bounds.","operationId":"verifyStarkProof","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"STARK verification result","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Public cryptographic re-verification of any Winterfell STARK proof"}},"/api/agent/402-challenge":{"get":{"description":"Generates an HTTP 402 Payment Required challenge supporting both Newsatoshi L1 hash-locks and sub-millisecond post-quantum PayWord hash-chain streaming.","operationId":"getHttp402Challenge","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}},{"in":"query","name":"resource","schema":{"default":"/api/inference","type":"string"}},{"in":"query","name":"amount_love","schema":{"default":"0.01","type":"string"}},{"in":"query","name":"network","schema":{"default":"mainnet","enum":["mainnet","testnet"],"type":"string"}}],"responses":{"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Http402ChallengeResponse"}}},"description":"Payment Required challenge","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}}},"summary":"Emit an HTTP 402 Payment Required dual-rail challenge"}},"/api/agent/402-verify":{"post":{"description":"Cryptographically verifies SHA256^ticks(token) == tip or checks live L1 lock settlement.","operationId":"verifyHttp402Payment","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Http402VerifyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Payment verification result","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Verify a PayWord SHA-256 micropayment token or live Newsatoshi L1 hash-lock payment"}},"/api/deeds":{"post":{"description":"Verifies price-bound XMSS or NIST FIPS 205 SLH-DSA land deed attestations and proves recursive covenant continuity.","operationId":"submitSignedDeed","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Deed verification & STARK result","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Submit offline-signed post-quantum trustee land deed attestation"}},"/api/health":{"get":{"description":"Returns server version, uptime, and cryptographic verify-only key-isolation flags.","operationId":"getHealth","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}},"description":"Health status","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Server health, version, and verify-only key-isolation status"}},"/api/network/metrics":{"get":{"description":"Computes live estimated network hashrate, observed block interval, AuxPoW merge-mined percentage, supply mined percentage, and snapshot LOVE/day yield for a given miner hashrate_ths.","operationId":"getNetworkMetrics","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}},{"description":"Miner SHA-256 hashrate in TH/s (default 1.2 for Bitaxe Gamma).","in":"query","name":"hashrate_ths","required":false,"schema":{"default":1.2,"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Live network & mining economics","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Live derived Newsatoshi Mainnet/Testnet hashrate, AuxPoW dominance, supply, and merge-mining yield"}},"/api/seed":{"get":{"description":"Returns live block height, tip hash, difficulty, issued LOVE, open locks, peers, and AuxPoW chainid 20051 for Mainnet and Testnet.","operationId":"getNetworkSeed","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Live chain telemetry","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Live dual-chain Newsatoshi L1 Testnet + Mainnet status"}},"/api/state":{"get":{"description":"Returns current treasury state, covenant rule hash, XMSS/SLH-DSA public roots, verified STARKs, and L1 anchor receipts.","operationId":"getCommonsState","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Commons ledger snapshot","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Live Commons ledger state, public roots, STARK proofs, anchors, and swap board"}},"/api/swaps":{"get":{"description":"Returns all published zero-custody SHA-256 HTLC swap offers.","operationId":"listSwaps","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Swap board list","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"List persisted non-custodial multi-chain atomic swap contracts"},"post":{"description":"Persists a compiled atomic swap contract to the public board.","operationId":"publishSwap","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapCompileRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Published swap contract","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Publish a verified swap contract (operator bearer auth required)"}},"/api/swaps/compile":{"post":{"description":"Compiles deterministic BIP-199 Bitcoin P2WSH scripts, BOLT-11 Lightning invoices, Solana PDA escrows, or Base/Ethereum/Arbitrum NewsatoshiHtlc.sol swap payloads paired with Newsatoshi L1 lock CLI commands.","operationId":"compileAtomicSwap","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapCompileRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Compiled swap contract","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Public stateless multi-chain SHA-256 HTLC swap compiler (BTC, Lightning, Solana, Base/EVM)"}},"/api/swaps/verify":{"post":{"description":"Verifies SHA-256 hash-locks live across Newsatoshi L1 and Bitcoin mempool.space plus optional preimage verification.","operationId":"verifySwapOnChain","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapVerifyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Live verification report","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Public live dual-chain verifier (Newsatoshi L1 /api/lock + Bitcoin mempool.space + preimage)"}},"/api/telemetry":{"post":{"description":"Verifies payout-bound post-quantum hardware signatures and generates a Winterfell STARK covenant transition proof.","operationId":"submitSignedTelemetry","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"Telemetry verification & STARK result","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Submit offline-signed post-quantum XMSS or NIST FIPS 205 SLH-DSA hardware energy telemetry"}},"/mcp":{"post":{"description":"Executes MCP JSON-RPC 2.0 methods (initialize, ping, tools/list, tools/call, resources/list, resources/read) with zero authentication required.","operationId":"invokeMcpRpc","parameters":[{"description":"Optional API version pin (current: 2026-11). Breaking changes carry a 90-day Deprecation/Sunset window.","in":"header","name":"X-API-Version","required":false,"schema":{"default":"2026-11","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpRpcRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericApiResponse"}}},"description":"JSON-RPC 2.0 response","headers":{"RateLimit-Policy":{"description":"RFC RateLimit policy (120;w=60)","schema":{"type":"string"}},"X-API-Version":{"description":"API version identifier (2026-11)","schema":{"type":"string"}}}},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 Problem Details error"}},"summary":"Streamable HTTP MCP JSON-RPC 2.0 endpoint"}}},"servers":[{"description":"Production verify-only Newsatoshi Commons gateway","url":"https://commons.newsatoshi.org"}]}