Dispatchables

Get a list of dispatchables for a pallet.

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

get

/pallets/{palletId}/dispatchables

Path parameters
palletIdstringrequired

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

Query parameters
onlyIdsboolean

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

Responses
curl -L \
  --url 'https://dot-playbook.nownodes.io/pallets/{palletId}/dispatchables'
{
  "at": {
    "hash": "text",
    "height": "text"
  },
  "pallet": "democracy",
  "palletIndex": "14",
  "items": [
    {
      "name": "propose",
      "fields": [
        "text"
      ],
      "index": "0",
      "docs": "Information concerning any given dispatchable.\n\n TWOX-NOTE: SAFE as indexes are not under an attacker’s control.",
      "args": [
        "text"
      ]
    }
  ]
}

Get the value of a dispatchable item.

Returns the value stored under the dispatchableItemId.

get

/pallets/{palletId}/dispatchables/{dispatchableItemId}

Path parameters
palletIdstringrequired

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

dispatchableItemIdstringrequired

Id of the dispatchable item to query for.

Query parameters
metadataboolean · default: false

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

Responses
curl -L \
  --url 'https://dot-playbook.nownodes.io/pallets/{palletId}/dispatchables/{dispatchableItemId}'
{
  "pallet": "democracy",
  "palletIndex": "14",
  "dispatchableItem": "vote",
  "metadata": {
    "name": "propose",
    "fields": [
      "text"
    ],
    "index": "0",
    "docs": "Information concerning any given dispatchable.\n\n TWOX-NOTE: SAFE as indexes are not under an attacker’s control.",
    "args": [
      "text"
    ]
  }
}