Monitor WETH balance on Solana (via Native program)
In the wormhole example, one can also monitor SPL token program.
First, import your builtin SPL token processor
Then we trigger user written callback on both Mint
and Burn
instructions (Both are standard in SPL program). The code is as follows
You could see the metrics are submitted using ctx.meter.Counter
See this repo for full implementation. To learn how to view metrics from the UI, go to View Metrics
Last updated