Get events of the latest block
GET//v1/chains/:chainID/core/blocklog/events/block/latest
Get events of the latest block
Request
Path Parameters
chainID stringrequired
ChainID (Bech32)
Query Parameters
block string
Block index or trie root
Responses
- 200
- 401
The receipts
- application/json
- Schema
- Example (from schema)
Schema
events EventJSON[]required
{
"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"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET '/v1/chains/:chainID/core/blocklog/events/block/latest' \
-H 'Accept: application/json'
ResponseClear