Source
get_token_supplyParameters
Pubkey of the token Mint to query, as base-58 encoded string
Configuration object containing the following fields:
Show propertiesHide properties
Show propertiesHide properties
Values:
processed, confirmed, finalizedSolana RPC uses the following commitment levels:| Value | Description |
|---|---|
processed | Return data from the highest slot this node has processed. This is the newest view, but the block can still be skipped. |
confirmed | Return data from the same slot as finalized. Kept for compatibility and planned for removal in a later release. |
finalized | Return data from the highest slot with a finalization certificate, from votes by 80% of stake in one round or 60% of stake in each of two rounds. This is the strongest commitment level. |
Result
RpcResponse object containing:
Show propertiesHide properties
Show propertiesHide properties
Slot and API version the node used to answer this request.
| Field | Type | Description |
|---|---|---|
slot | u64 | Slot at which the node evaluated this request. |
apiVersion | string | RPC API version reported by the node. This field may be omitted by older nodes. |
Token amount object with the following fields:This uses the same amount fields documented for
uiTokenAmount in
Token Balances.| Field | Type | Description |
|---|---|---|
amount | string | Raw total token supply, as a base-10 integer string with no decimal point. |
decimals | u8 | Number of decimal places configured on the mint. |
uiAmount | number | null | Decimal-scaled total supply as a floating-point number. Deprecated in favor of uiAmountString. |
uiAmountString | string | Decimal-scaled total supply as a string. |