Skip to main content

/pallets/{palletId}/events/{eventItemId} REST API Endpoint

Get the value of an event item.

Updated on
Sep 2, 2024

/pallets/{palletId}/events/{eventItemId} REST API Endpoint

Path Parameters

palletId
string
REQUIRED
The name or index of the pallet to read event metadata for
eventItemId
string
REQUIRED
The id of the event item to query for

Query Parameters

at
string
Block at which to query the event item at
metadata
boolean
Include the event items metadata (including documentation) if set to true

Returns

at
object
An object containing information about the state
hash
string
The block's hash
height
string
The block's height
pallet
string
The name of the pallet (module) in the blockchain runtime that the events are associated
palletIndex
string
The index of the pallet in the runtime's list of pallets
eventItem
string
The name of the specific event item being referenced
metadata
object
The metadata object which contains the following fields:
name
string
The name of the event
fields
array
An array of specific attributes or data elements within the event
name
string
The label or identifier of the data element within the event
type
string
The internal numeric identifier for the data type of the field
typeName
string
A more readable name describing the data type of the field
docs
array
A brief description or documentation for the event
index
string
The event's position or identifier within the pallet's event list
docs
string
A brief description or documentation for the event
args
string
An array representing the types of arguments passed to this event
Request
1
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/pallets/Scheduler/events/Scheduled?metadata=true' \
2
--header 'Accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free