I'm attempting to use the programSubscribe method to listen for specific types of Token Program events, namely "initializeMint". Essentially, I want to know about the creation of token accounts before they mint.
In explorer, I can see that specific event associated with the Token Program, as well as the actual account creation, but when I listen to all events from the program all I see are events with type="mint" or type="account". Should I not expect to see the exact phrase "initializeMint" in the emitted event?
Clearly I'm misunderstanding something or there are assumptions that aren't clear to me yet. Are all of these events with type="account" the creation of token accounts? The documentation on Web Sockets doesn't go into much detail on the payload.
And the docs I have been referring to: https://solana.com/docs/rpc/websocket/programsubscribe
I also looked at logsSubscribe but that was much more verbose and gave me the sense that there were other scenarios when InitializeMint appeared in the instructions.
Any guidance, link to robust documentation on event payloads, etc. would be greatly appreciated.
Thanks