DEV Community

Nick
Nick

Posted on

How to Create an Endpoint API for Circulating Supply and Total Supply of a Token on Solana?

Hi everyone,

I need help creating an API endpoint that returns the circulating supply and total supply of a token on the Solana blockchain. I'm new to Solana development and could use some guidance.

Questions:

Token Supply:

How do I get the total supply of a token on Solana?
How can I calculate the circulating supply?
Solana Tools:

Which Solana RPC methods or SDK functions should I use?
API Development:

Any tips for setting up a secure and efficient API endpoint?
Are there example codes or templates I can follow?
Any advice or resources would be greatly appreciated. Thanks!

Best,
Nick

Top comments (0)