I'm developing a Solana program using the Anchor framework. In one of my instructions, I need to fetch the total number of minted tokens currently in circulation. I'm aware that this information can be obtained via the getTokenSupply()
RPC call.
However, I'd like to know if it's possible to achieve this directly within the Solana program itself.