Indexer changes
Subscribe to Trench and governance transaction updates through your gRPC and inspectmeta.innerInstructions from each update.
For each inner instruction:
- Resolve its program ID through the transaction’s static and loaded account keys.
- Keep only Trench or governance instructions.
- Verify the first instruction account is that program’s
__event_authorityPDA. - Read the instruction data bytes from the gRPC update.
- Validate the CPI event tag.
- Decode the remaining event discriminator and Borsh payload with SDK
0.5.0or the matching IDL.
