OpenShore

Polkadot

Public API

Signed comments and proposal descriptions (SIMA)

OpenShore publishes everything its users write on proposals as signed SIMA actions: comments, replies, comment edits, and the titles and descriptions proposers give their proposals.

Each item is the exact JSON the author signed with their Polkadot account, together with the signature. You can check every one yourself; you don't need to trust OpenShore.

Endpoint

GET https://openshore.io/api/sima

Until the openshore.io domain moves to the new site, use https://web-production-83f88.up.railway.app/api/sima.

  • Public. No key, no auth.
  • Rate limit: 600 requests per minute per IP. Above that you get HTTP 429 with a retry-after header in seconds.
  • Responses carry Cache-Control: public, max-age=30. Polling once a minute or less often is plenty.

Query parameters

All parameters are optional and can be combined. Results come oldest first, ordered by (createdAt, cid).

ParamValuesNotes
actioncomment, replace_comment, provide_context, comma-separatedFor comments only, use action=comment,replace_comment
entity_typereferendum, bounty, multi_asset_bounty
entity_idthe on-chain index, e.g. 1953
addressany SS58 addressMatched as Polkadot (prefix 0)
chainassethub, polkadot
sinceISO 8601 time, e.g. 2026-10-01T00:00:00ZReturns actions stored strictly after this time
cursorthe next value from the previous page
limit1–200, default 100

Response

{
  "actions": [
    {
      "cid": "bafkrei…",
      "action": "comment",
      "entityType": "referendum",
      "entityId": "1953",
      "chain": "assethub",
      "parentCid": null,
      "entity": {
        "action": "comment",
        "indexer": { "pallet": "referenda", "object": "referendumInfoFor", "proposed_height": 123456, "id": 1953 },
        "content": "Markdown text",
        "content_format": "subsquare_md",
        "timestamp": 1791056204032
      },
      "entityJson": "{\"action\":\"comment\",…}",
      "address": "15HJ2H9SiV32vpDwFjv4wrGmrCRLnWb4kDuhjmmE2Ph9m2yJ",
      "signature": "0x…",
      "signerType": "sr25519",
      "createdAt": "2026-10-15T09:58:44.123Z",
      "publishedAt": null,
      "replyTo": null
    }
  ],
  "next": "bafkrei…"
}
  • entityJson is the exact string that was signed. Verify against this string, not against a re-serialised entity.
  • entity is entityJson already parsed, for convenience. entity.action is one of:
    • comment: the target is either indexer (a comment on the proposal) or cid (a reply to another OpenShore comment).
    • replace_comment: an edit of the comment whose cid is old_comment_cid. Only that comment's author can sign one, and it keeps the same target.
    • provide_context: a title and description, signed by the proposal's proposer.
  • replyTo is not signed. A SIMA entity cannot point at a comment that has no cid, such as a comment made on Subsquare. When an OpenShore user replies to one, the signed entity targets the proposal (indexer) and replyTo names the Subsquare comment: { "source": "subsquare", "id": "<Subsquare comment _id>" }. Otherwise it is null.
  • next is null when there are no more pages.

Pulling comments

  1. Start with GET /api/sima?action=comment,replace_comment&limit=200.
  2. While next is not null, call again with &cursor=<next>.
  3. Store the last cid you saw. Next time, start from ?cursor=<that cid> to get only newer actions.

Pulling titles and descriptions

Use action=provide_context. Add entity_type and entity_id for one proposal, e.g. GET /api/sima?action=provide_context&entity_type=referendum&entity_id=1953, or page through all of them as above.

{
  "action": "provide_context",
  "indexer": { "pallet": "referenda", "object": "referendumInfoFor", "proposed_height": 123456, "id": 1953 },
  "title": "Proposal title",
  "content": "Markdown description",
  "content_format": "subsquare_md",
  "timestamp": 1791056204032
}
  • Only an account that proposed the referendum or bounty can sign one. OpenShore checks this against the chain before storing it.
  • Every edit is a new action, and the newest one wins. Results come oldest first, so for each (entityType, entityId) keep the last one you see.
  • title is up to 256 characters, and content up to 100,000.
  • content is Markdown (subsquare_md) with GitHub extensions such as tables and task lists, and may contain HTML. Sanitise it before rendering. Images are links to http(s) URLs hosted elsewhere; OpenShore doesn't host them.

Verifying an action

  1. Signature. signature is 64 bytes, hex encoded. The SS58 address decodes to a 32-byte public key. Verify against <Bytes> + entityJson + </Bytes> as UTF-8, which is how polkadot.js signRaw wraps a message. Try the bare entityJson too. The scheme is in signerType (sr25519 or ed25519). A 65-byte signature carries a type byte in front: 0x00 means ed25519, 0x01 means sr25519.
  2. CID. cid is a CIDv1 (raw codec, sha2-256, base32 lowercase, so it starts with bafkrei) of the UTF-8 bytes of entityJson. Recompute it to check that the content wasn't changed.
  3. Timestamp. OpenShore refuses actions whose timestamp is more than 10 minutes off its own clock when they are submitted.

Known limits

  • Hidden comments. Comments that OpenShore moderators hide are left out, along with their edits. A comment you already pulled and that is hidden later just stops appearing. There is no deletion event yet.
  • What is covered. Comments on child bounties and treasury spends are not covered, because SIMA has no target for them. On OpenShore, spend comments live on the referendum thread.

Questions