Decoded Events
Decoded events can be found in solana.decoded.events
.
In solana there are 3 flavors of events.
1) Embedded base64 text in log_messages
of raw transactions, usually prefixed with Program Data
or Program Log
. These are subjected to log_message truncation if there are too many log messages in a transactions. e.g. log line 15 in this tx. In solana.decoded.events
, these are marked with event_type='log_message_base64'
.
2) Embedded json text in log_messages
of raw transactions, usually prefixed with ‘Program Data’ or ‘Program Log’. These are subjected to log_message truncation if there are too many log messages in a transactions. e.g. log line 11 in this tx. In solana.decoded.events
, these are marked with event_type='log_message_json'
.
3) Event data embedded in anchor_self_cpi_log
instructions, called by a program. e.g. Instruction 4.7 in this tx. The selector of e445a52e51cb9a1d
is stripped from the instruction data, and the remaining bytes decoded to an event. In solana.decoded.events
, these are marked with event_type='anchor_self_cpi_log'
.
Coverage:
project/protocol | program_id | event_type |
---|---|---|
meteora dlmm | LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo | anchor_self_cpi_log |
jupiter v6 | JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 | anchor_self_cpi_log |