Error codes / SPL Token
SPL Token error codes
Custom error codes of the SPL Token program. Token-2022 shares the same first twenty codes.
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
- 0 · 0x0NotRentExempt
Lamport balance below rent-exempt minimum.
- 1 · 0x1InsufficientFunds
The token account holds fewer tokens than the instruction needs.
- 2 · 0x2InvalidMint
The mint account is not valid.
- 3 · 0x3MintMismatch
A token account belongs to a different mint than expected.
- 4 · 0x4OwnerMismatch
The owner of the token account does not match the signer or authority.
- 5 · 0x5FixedSupply
This mint has no mint authority — supply is fixed.
- 6 · 0x6AlreadyInUse
The account is already initialized.
- 7 · 0x7InvalidNumberOfProvidedSigners
Multisig signer count is out of range.
- 8 · 0x8InvalidNumberOfRequiredSigners
Required-signer count is out of range for the multisig.
- 9 · 0x9UninitializedState
The account is not initialized.
- 10 · 0xaNativeNotSupported
This instruction does not work on the native SOL wrapper account.
- 11 · 0xbNonNativeHasBalance
Attempted to close a token account that still holds tokens.
- 12 · 0xcInvalidInstruction
The token program could not parse this instruction.
- 13 · 0xdInvalidState
The account is in an invalid state for this operation.
- 14 · 0xeOverflow
The operation would overflow the token amount (u64).
- 15 · 0xfAuthorityTypeNotSupported
This authority type does not apply to this account.
- 16 · 0x10MintCannotFreeze
This mint has no freeze authority.
- 17 · 0x11AccountFrozen
The token account is frozen by the mint's freeze authority.
- 18 · 0x12MintDecimalsMismatch
The decimals argument does not match the mint's decimals.
- 19 · 0x13NonNativeNotSupported
This instruction only works on native (wSOL) accounts.