Current Supply bsc token

I’m trying to fetch the Current Supply for Safemoon so I can then calculate the Market Cap.

I’m running the following query:

{
ethereum(network: bsc) {
address(address: {is: “0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3”}) {
annotation
address
smartContract {
attributes {
name
type
value
}
contractType
currency {
symbol
name
decimals
tokenType
}
}
balance
}
}
}

I’m expecting to see something around 585,536.37B (SafeMoon price today, SAFEMOON live marketcap, chart, and info | CoinMarketCap) but instead seeing 3926.19199809857

Any ideas?

The data shown in SafeMoon price today, SAFEMOON live marketcap, chart, and info | CoinMarketCap is of Circulating Supply and the value returned from the query is of the balance. Are they both of the same parameter?

Hi,

hmmm yes possibly. I was actually following this example here: MarketCap of a Token

I thought this post was helping fetch the supply of a token (for the purpose of then being able to calculate market cap) , but it looks like it could be incorrect.

Are you aware of a way to get the Circulating Supply or Market Cap from bitquery?

The original query is giving balance not supply.

We don’t have the supply for all tokens. If we do it will come under attributes.

You can get the supply directly from the Binance node. Otherwise you need to wait, we will implement it soon.