Get events of a block
GET/v1/chains/:chainID/core/blocklog/events/block/:blockIndex
Get events of a block
Request
Path Parameters
chainID stringrequired
ChainID (Bech32)
blockIndex int32required
Possible values: >= 1
BlockIndex (uint32)
Query Parameters
block string
Block index or trie root
Responses
- 200
- 401
The events
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
events EventJSON[]required
contractID int32required
Possible values: >= 1
ID of the Contract that issued the event
payload stringrequired
payload
timestamp int64required
timestamp
topic stringrequired
topic
{
"events": [
{
"payload": "payload",
"contractID": 1,
"topic": "topic",
"timestamp": 6
},
{
"payload": "payload",
"contractID": 1,
"topic": "topic",
"timestamp": 6
}
]
}
Unauthorized (Wrong permissions, missing token)
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
missingPermission stringrequired
{
"error": "string",
"missingPermission": "string"
}
Loading...