getTokenSupply

Returns the total supply of an SPL Token type.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
Token Mint PubkeystringRequired
The Pubkey of the token Mint to query.
ConfigurationobjectOptional
Optional configuration object containing additional settings.

Response

The total supply of the specified SPL Token.
amountstring or null
The raw balance without decimals, a string representation of u64.
decimalsinteger or null

Number of base-10 digits to the right of the decimal place.

uiAmountdouble or null

The balance, using mint-prescribed decimals. DEPRECATED

uiAmountStringstring or null

The balance as a string, using mint-prescribed decimals.