Events

Get a list of events for a pallet.

get

Returns a list of event item metadata for event items of the specified palletId.

Path parameters
palletIdstringRequired

Name or index of the pallet to read event metadata for. Note: the pallet name must match what is specified in the runtime metadata.

Query parameters
onlyIdsbooleanOptional

Only return the names (IDs) of the event items instead of every event's metadata.

atstring · unsignedInteger or $hexOptional

Block identifier, as the block height or block hash.

Responses
200
successful operation
application/json
get
GET /pallets/{palletId}/events HTTP/1.1
Host: dot-playbook.nownodes.io
Accept: */*
{
  "at": {
    "hash": "text",
    "height": "text"
  },
  "pallet": "democracy",
  "palletIndex": "14",
  "items": [
    {
      "name": "Tabled",
      "fields": [
        "text"
      ],
      "index": "0",
      "docs": " Information concerning any given event.\n\n TWOX-NOTE: SAFE as indexes are not under an attacker’s control.",
      "args": [
        "text"
      ]
    }
  ]
}

Get the value of an event item.

get

Returns the value stored under the eventItemId.

Path parameters
palletIdstringRequired

Name or index of the pallet to read event metadata for. Note: the pallet name must match what is specified in the runtime metadata.

eventItemIdstringRequired

Id of the event item to query for.

Query parameters
atstring · unsignedInteger or $hexOptional

Block identifier, as the block height or block hash.

metadatabooleanOptional

Include the event items metadata (including documentation) if set to true.

Default: false
Responses
200
successful operation
application/json
get
GET /pallets/{palletId}/events/{eventItemId} HTTP/1.1
Host: dot-playbook.nownodes.io
Accept: */*
{
  "pallet": "democracy",
  "palletIndex": "14",
  "eventItem": "Proposed",
  "metadata": {
    "name": "Tabled",
    "fields": [
      "text"
    ],
    "index": "0",
    "docs": " Information concerning any given event.\n\n TWOX-NOTE: SAFE as indexes are not under an attacker’s control.",
    "args": [
      "text"
    ]
  }
}