Skip to main content
Trench and Trench Governance now emit Anchor events through CPI. Partner API request and response schemas, endpoints, transaction signatures, token balance changes, and confirmation behavior are unchanged.

Indexer changes

Subscribe to Trench and governance transaction updates through your gRPC and inspect meta.innerInstructions from each update. For each inner instruction:
  1. Resolve its program ID through the transaction’s static and loaded account keys.
  2. Keep only Trench or governance instructions.
  3. Verify the first instruction account is that program’s __event_authority PDA.
  4. Read the instruction data bytes from the gRPC update.
  5. Validate the CPI event tag.
  6. Decode the remaining event discriminator and Borsh payload with SDK 0.5.0 or the matching IDL.