Skip to main content
ParseMint reads a mint account and returns its structured state. It detects whether the mint belongs to the SPL Token or Token-2022 program and returns the appropriate extension or metadata data. ParseMint is a query method — it does not return a SolanaInstruction. No transaction is needed.

Request

account_address
Base58-encoded public key (string)
required
The mint account address to parse.

Response

mint
MintInfo (object)
required
Core mint account fields.
token_program
TokenProgram (enum)
required
Indicates which token program owns this mint. Either TOKEN_PROGRAM_SPL_TOKEN (legacy SPL Token) or TOKEN_PROGRAM_TOKEN_2022 (Token Extensions). See TokenProgram.
extensions
Token2022Extension[] (repeated)
Token-2022 extensions configured on this mint. Empty for SPL Token mints.
metaplex_metadata
MetaplexTokenMetadata (object)
Metaplex on-chain metadata. Only present for SPL Token mints that were created with CreateSPLTokenMint and included metadata.

Code Examples

resp, err := client.ParseMint(ctx, &token_v1.ParseMintRequest{
    AccountAddress: "YourMintAddress...",
})
if err != nil {
    log.Fatal(err)
}
fmt.Printf("Token program: %s\n", resp.TokenProgram)
fmt.Printf("Decimals: %d\n", resp.Mint.Decimals)
fmt.Printf("Supply: %s\n", resp.Mint.Supply)
fmt.Printf("Extensions: %d\n", len(resp.Extensions))