Error codes / Lighthouse
Lighthouse error codes
Lighthouse is the open-source assertion program wallets and trading apps append to a transaction as a safety guard. When a guard trips, the whole transaction fails with one of these codes; 6001 (0x1771) is by far the most common and is often mistaken for Jupiter's slippage error, which shares the number.
L2TExMFKdjpN9kozasaurPirfHy9P8sbXoAN1qA3S95
- 6000 · 0x1770InvalidInstructionData
The guard instruction itself is malformed. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6001 · 0x1771AssertionFailed
The failing instruction is a safety guard added by the wallet or trading app that built this transaction (Lighthouse, the open-source assertion program). What it required was no longer true at execution, so it aborted the whole transaction before anything else ran. This is not Jupiter's slippage error, although it shares the number 0x1771: the state the app previewed (a balance, a pool reserve, or a deadline) changed before the transaction landed.
- 6002 · 0x1772NotEnoughAccounts
The guard instruction was given fewer accounts than it needs. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6003 · 0x1773BumpNotFound
A memory account's bump seed could not be found. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6004 · 0x1774AccountBorrowFailed
The guarded account's data could not be read (it is already borrowed). Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6005 · 0x1775RangeOutOfBounds
The guard reads past the end of the account's data. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6006 · 0x1776IndexOutOfBounds
The guard points at an index that does not exist. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6007 · 0x1777FailedToDeserialize
The guarded account's data does not have the expected layout. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6008 · 0x1778FailedToSerialize
A value could not be written to the memory account. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6009 · 0x1779AccountOwnerMismatch
The guarded account is owned by a different program than expected. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6010 · 0x177aAccountKeyMismatch
The guarded account is not the expected address. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6011 · 0x177bAccountNotInitialized
The guarded account does not exist or is empty. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6012 · 0x177cAccountOwnerValidationFailed
The guarded account's owner check failed. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6013 · 0x177dAccountFundedValidationFailed
The guarded account holds no lamports. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6014 · 0x177eAccountDiscriminatorValidationFailed
The guarded account's discriminator is not the expected one. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6015 · 0x177fAccountValidationFailed
The guarded account failed validation. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.
- 6016 · 0x1780CrossProgramInvokeViolation
Lighthouse must be called directly, not through another program. Lighthouse is the assertion program wallets and trading apps append to a transaction as a safety guard.