Error codes / System Program
System Program error codes
The System Program's error codes are small integers that look meaningless on their own.
11111111111111111111111111111111
- 0 · 0x0Account already in use
The System Program was asked to create an account at an address that already exists.
- 1 · 0x1Insufficient SOL
A transfer or account creation needs more lamports than the source account holds.
- 2 · 0x2Invalid program id
The account was assigned to, or expected to be owned by, a different program.
- 3 · 0x3Invalid account data length
The requested account size is not allowed (too large, or not what the program expects).
- 4 · 0x4Seed too long
A seed used to derive the address exceeds 32 bytes.
- 5 · 0x5Address does not match seeds
The provided address is not the one derived from the base, seed and program.
- 6 · 0x6Nonce account has no recent blockhashes
Advancing the nonce failed because the recent blockhashes sysvar was empty.
- 7 · 0x7Nonce blockhash not expired
The durable nonce was advanced twice in the same slot, so its stored blockhash has not changed yet.
- 8 · 0x8Unexpected nonce value
The transaction's blockhash does not match the value stored in the nonce account. Another transaction used the nonce first.