Cosmos event attributes are key-value pairs that provide more detailed information about a categorized event. These attributes help filter and identify specific aspects of an event. Based on the provided example, the Cosmos event attributes include the following key-value pairs:

  1. msg_index: Identifies which messages relate to the same transaction. This is reflected in the transaction_index field.

  2. event_type: Categorizes the event at a high-level, such as “message”. This helps filter events by message type within the Cosmos SDK.

  3. key: A specific attribute key related to the event, for example, “module”.

  4. value: The value associated with the attribute key, for example, “staking”.

Table Columns

Unique key: block_number, transaction_hash, event_index, event_attribute_index

Column NameDescription
block_hashThe hash of the block containing the transaction.
block_numberThe number of the block in the blockchain.
block_timestampThe timestamp when the block was created.
transaction_hashThe hash of the transaction.
transaction_indexThe index of the transaction within the block.
event_typeThe type of event (e.g., message).
event_indexThe index of the event within the transaction.
event_attribute_indexThe index of the attribute within the event.
keyThe key of the event attribute (e.g., module).
valueThe value of the event attribute (e.g., staking).
indexThe index of the attribute.
_created_atThe timestamp when the entry was created.
_updated_atThe timestamp when the entry was updated.