{"id":"XE-4504","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":968,"title":"openapi: /statechain/tip returns `prev_hash`, `signatures` and `timestamp`, none of which the contract declares","area":"sdk-docs-web","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":true,"internal_ref":"#1078","internal_url":"https://github.com/xeprotocol/core/issues/1078","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-11T02:26:31.195716+00:00","updated_at":"2026-11-15T17:42:16.598376+00:00","source_created_at":null,"told_at":"2026-11-15T17:42:48.922277+00:00","status_changed_at":"2026-11-15T17:42:48.903881+00:00","url":"https://bounty.xe.network/XE-4504","body":"## Summary\r\n\r\n`GET /statechain/tip` is documented with exactly three properties: `hash`, `index`, `ops`.\r\nThe node returns six: it also emits `prev_hash`, `signatures` and `timestamp`.\r\n\r\n## Steps to reproduce (read-only, no auth)\r\n\r\n```\r\ncurl -s https://ldn.core.test.network/statechain/tip | python -c \"import sys,json;print(sorted(json.load(sys.stdin)))\"\r\n```\r\n\r\nActual: `['hash', 'index', 'ops', 'prev_hash', 'signatures', 'timestamp']`\r\nDocumented (https://test.network/openapi.json, /statechain/tip, 200): `hash`, `index`, `ops`.\r\n\r\n## Why it matters\r\n\r\nThe state chain is a signed, hash-linked log; that is the point of it. The two fields that\r\nlet a client check the linkage (`prev_hash`) and the authority (`signatures`) are not in the\r\ncontract, and neither is `timestamp`, so none of them can be relied on by anything generated\r\nfrom the spec. A wallet or DAO harness that wants to verify the tip before signing an\r\nactivation has to reverse-engineer the response instead of reading the schema.\r\n\r\nThis is the mirror image of XE-0063 (schemas that are wrong about types): here the schema is\r\nincomplete about the fields that carry the security property.\r\n\r\n## Not a duplicate (checked)\r\n\r\nScanned all 891 public bounty tickets for `statechain/tip`: zero. The nearest are XE-0397\r\nand XE-3512 (block hash / signing bytes carry no network ID, a consensus issue) and XE-0481\r\n(POST /statechain/blocks status mapping). None describes this response schema.\r\n\r\n## Suggested fix\r\n\r\nDeclare the three fields (they are already serialised), or generate the schema from the\r\nstruct as suggested on the sibling reports.","patch_refs":[],"thread":[{"id":6454,"source":"desk","source_ref":"reply:5094","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-4504 and says what differs; it is read like any other.","created_at":"2026-11-15T17:42:16.598376+00:00"}]}