Get events of a contract
GET/v1/chains/:chainID/core/blocklog/events/contract/:contractHname
Get events of a contract
Request
Path Parameters
chainID stringrequired
ChainID (Bech32)
contractHname stringrequired
The contract hname (Hex)
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...