{"openapi":"3.1.0","info":{"title":"TapeOut State Report","version":"1.0.0","description":"Compare TapeOut factory and beacon state at two finalized X Layer blocks, including implementation addresses, bytecode fingerprints, fees, and activity.","x-guidance":"Use GET /api/report with an x402 v2 client on Base. Omit both parameters for the verified default comparison. Supply decimal block heights for a custom comparison, or set to=finalized for the latest finalized block. GET /sample returns a separate older example without payment.","x-buyer-guide":"https://tapeout-state-report.pages.dev/llms.txt"},"servers":[{"url":"https://tapeout-state-report.pages.dev"}],"externalDocs":{"description":"Independent paid delivery verification","url":"https://settled.tools/e/9671771"},"paths":{"/api/report":{"get":{"operationId":"compareTapeOutState","summary":"Compare X Layer TapeOut contract state","description":"Compare TapeOut factory and beacon state at two finalized X Layer blocks, including implementation addresses, bytecode fingerprints, fees, and activity.","parameters":[{"name":"from","in":"query","schema":{"type":"string","default":"71768710"}},{"name":"to","in":"query","description":"With neither parameter, use the verified block shown here. With only from, resolve the current finalized block.","schema":{"type":"string","example":"77128009"}}],"responses":{"200":{"description":"Finalized-block comparison JSON","content":{"application/json":{"schema":{"type":"object","required":["kind","comparison"],"properties":{"kind":{"const":"tapeout-state-comparison"},"comparison":{"type":"object"}}}}}},"400":{"description":"Invalid block range"},"402":{"description":"x402 v2 exact Base USDC payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"503":{"description":"The requested comparison is unavailable"}},"x-payment":{"version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","amountAtomic":"10000"},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/api/release-report":{"get":{"operationId":"verifyTapeOutRelease","summary":"Verify a TapeOut release on Base or X Layer","description":"Check a TapeOut release on Base or X Layer against two RPC operators. Includes canonical block hashes, implementation and fee changes, and an optional factory implementation check for CI.","x-request-examples":{"196":{"quote":"https://tapeout-state-report.pages.dev/api/release-report?chainId=196&from=72375308&to=77128009&expectedFactoryImplementation=0x74956236ab64ed143933040b4137e8a352e4d17b","preview":"https://tapeout-state-report.pages.dev/release-sample?chainId=196"},"8453":{"quote":"https://tapeout-state-report.pages.dev/api/release-report?chainId=8453&from=51874173&to=63566333&expectedFactoryImplementation=0x74956236ab64ed143933040b4137e8a352e4d17b","preview":"https://tapeout-state-report.pages.dev/release-sample?chainId=8453"}},"parameters":[{"name":"chainId","in":"query","description":"Use 8453 for Base. The default 196 selects X Layer.","schema":{"type":"string","enum":["196","8453"],"default":"196"}},{"name":"from","in":"query","description":"Starting block on the selected chain. Supply both heights or omit both.","schema":{"type":"string","pattern":"^[1-9][0-9]{0,8}$"}},{"name":"to","in":"query","description":"Ending block finalized on the selected chain.","schema":{"type":"string","pattern":"^[1-9][0-9]{0,8}$"}},{"name":"expectedFactoryImplementation","in":"query","description":"Expected factory implementation address at the ending block.","schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}],"responses":{"200":{"description":"Verified configuration delta and release check","content":{"application/json":{"schema":{"type":"object","required":["kind","comparison","verification"],"properties":{"kind":{"const":"tapeout-release-report"},"comparison":{"type":"object"},"verification":{"type":"object","required":["agreeingRpcEndpoints","factoryImplementation"],"properties":{"agreeingRpcEndpoints":{"const":2},"factoryImplementation":{"type":"object","required":["observed","expected","matches"],"properties":{"observed":{"type":"string"},"expected":{"type":["string","null"]},"matches":{"type":["boolean","null"]}}}}}}}}}},"400":{"description":"Invalid chain ID, block range, expected address, or ending block still awaiting finality"},"402":{"description":"x402 v2 exact Base USDC payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}}},"503":{"description":"Both RPC endpoints could not confirm the report"}},"x-payment":{"version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","amountAtomic":"1000000"},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"1"}}}}}}