Skip to content

Constants

spl.token.constants

SPL token constants.

ACCOUNT_LEN: int

Data length of a token account.

ASSOCIATED_TOKEN_PROGRAM_ID

Program ID for the associated token account program.

MINT_LEN: int

Data length of a token mint account.

MULTISIG_LEN: int

Data length of a multisig token account.

TOKEN_PROGRAM_ID: Pubkey

Public key that identifies the SPL token program.

WRAPPED_SOL_MINT: Pubkey

Public key of the "Native Mint" for wrapping SOL to SPL token.

The Token Program can be used to wrap native SOL. Doing so allows native SOL to be treated like any other Token program token type and can be useful when being called from other programs that interact with the Token Program's interface.