Events
Overview
The Events API provides endpoints for interacting with blockchain events related to Ethos network activities. Currently, it allows for the specific processing of events associated with a given transaction hash.
Endpoints
Process Specific Transaction Events
Description: Processes the blockchain events associated with a specific transaction hash and returns the processing status and related data.
Authentication Required: Yes (Needs confirmation of exact requirements)
Parameters
Query Parameters
txHash
string
Yes
The transaction hash to process.
Path Parameters
None
Request Body
None
Responses
Success Response
Code: 200 OK
ok
boolean
Indicates if the API call itself was successful.
data
object
Container for the response data.
data.success
boolean
Indicates if the event processing for the given txHash
was successful.
data.transaction
object
The transaction receipt object (from Viem's getTransactionReceipt
). Null if not found.
data.event
object
The corresponding record from the BlockchainEvent
table in the database. Null if not found.
Error Responses
Code: 400 Bad Request
Code: 401 Unauthorized
Code: 500 Internal Server Error
Example
Request
Response
Notes
This endpoint allows forcing the processing of events for a specific transaction, bypassing the normal queue.
Requires authentication (likely internal/admin).
The
transaction
andevent
fields can benull
if the transaction or corresponding event record are not found.The exact structure of the
transaction
(Viem Receipt) andevent
(Prisma Model) objects should be referenced for full details.
Last updated