Iām using āGet ERC20 token metadata by contractā (https://docs.moralis.io/web3-data-api/evm/reference/get-token-metadata) to determine the total supply of a token on bsc testnet.
The result I get is below, but is incorrect. It reports total supply as 0.95, when in reality https://testnet.bscscan.com/token/0xA78fd05272f1Bf2A4a365cde5b952D1C0969661d reports 2,074,860.762
Iām a bit of a newbie, so please forgive me if Iām interpreting stuff incorrectly. And if this is not the appropriate API to get the total supply Iād appreciate if you could point me in right direction.
Many thanks
SteveS
[
{
āaddressā: ā0xa78fd05272f1bf2a4a365cde5b952d1c0969661dā,
āaddress_labelā: null,
ānameā: āHedgeā,
āsymbolā: āHDEā,
ādecimalsā: ā18ā,
ālogoā: null,
ālogo_hashā: null,
āthumbnailā: null,
ātotal_supplyā: ā950000000000000000ā,
ātotal_supply_formattedā: ā0.95ā,
āblock_numberā: ā0ā,
āvalidatedā: 1,
ācreated_atā: ā2024-04-26T05:54:08.000Zā,
āpossible_spamā: false,
āverified_contractā: false,
ācategoriesā: [],
ālinksā: {}
}
]