Custom program error

0x99

Appears in logs as custom program error: 0x9

SPL TokenTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

UninitializedState

“State is uninitialized”

The token account or mint has not been initialised, so the program cannot operate on it.

Common causes

  • The account was created with SystemProgram.createAccount but InitializeAccount was never called.
  • The associated token account for this wallet and mint does not exist yet.
  • A previous instruction in the same transaction that should have initialised it failed or was omitted.

How to fix it

  • Create the ATA first (idempotently) in the same transaction, then transfer.
  • Check getAccountInfo on the address: if data is empty or the owner is the System Program, it is not initialised.

Decode another error

Try: