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/simaUntil 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-afterheader 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).
| Param | Values | Notes |
|---|---|---|
| action | comment, replace_comment, provide_context, comma-separated | For comments only, use action=comment,replace_comment |
| entity_type | referendum, bounty, multi_asset_bounty | |
| entity_id | the on-chain index, e.g. 1953 | |
| address | any SS58 address | Matched as Polkadot (prefix 0) |
| chain | assethub, polkadot | |
| since | ISO 8601 time, e.g. 2026-10-01T00:00:00Z | Returns actions stored strictly after this time |
| cursor | the next value from the previous page | |
| limit | 1–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
entityJsonalready parsed, for convenience.entity.actionis one of:comment: the target is eitherindexer(a comment on the proposal) orcid(a reply to another OpenShore comment).replace_comment: an edit of the comment whosecidisold_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) andreplyTonames the Subsquare comment:{ "source": "subsquare", "id": "<Subsquare comment _id>" }. Otherwise it isnull. - next is
nullwhen there are no more pages.
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. titleis up to 256 characters, andcontentup to 100,000.contentis Markdown (subsquare_md) with GitHub extensions such as tables and task lists, and may contain HTML. Sanitise it before rendering. Images are links tohttp(s)URLs hosted elsewhere; OpenShore doesn't host them.
Verifying an action
- Signature.
signatureis 64 bytes, hex encoded. The SS58addressdecodes to a 32-byte public key. Verify against<Bytes>+entityJson+</Bytes>as UTF-8, which is how polkadot.jssignRawwraps a message. Try the bareentityJsontoo. The scheme is insignerType(sr25519ored25519). A 65-byte signature carries a type byte in front:0x00means ed25519,0x01means sr25519. - CID.
cidis a CIDv1 (raw codec, sha2-256, base32 lowercase, so it starts withbafkrei) of the UTF-8 bytes ofentityJson. Recompute it to check that the content wasn't changed. - Timestamp. OpenShore refuses actions whose
timestampis 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
Write to contact@palalabs.org.
Pulling comments
GET /api/sima?action=comment,replace_comment&limit=200.nextis not null, call again with&cursor=<next>.cidyou saw. Next time, start from?cursor=<that cid>to get only newer actions.