@solana/kit · Account fetching and decoding

Solana error #3230003

ACCOUNTS__EXPECTED_DECODED_ACCOUNT

Appears as Solana error #3230003; Decode this error by running `npx @solana/errors decode -- 3230003 '…'`

Message

Expected decoded account at address: $address

Placeholders (address) are filled from the error’s context. Paste the base64 argument below to see the real values.

What it means

Helpers like fetchEncodedAccount and assertAccountExists.

What to do

  • Confirm the address exists on the cluster your RPC points at.
  • Decoding failures usually mean the account belongs to a different program or program version than the decoder expects.

Decode it locally instead

npx @solana/errors decode -- 3230003 '<base64 context>'

In development, import from @solana/kit as usual and the full message is thrown. In production the message is stripped to keep bundles small; the error object still carries error.context with the same values this page decodes, and isSolanaError(err, SOLANA_ERROR__ACCOUNTS__EXPECTED_DECODED_ACCOUNT) lets you branch on it.

Decode another error

Try: