LazorKit

Protocol errors

Diagnose wallet, session, deferred execution and sponsorship errors on Protocol v1.

Use extractErrorCode(error) and errorFromCode(code) from the installed Protocol SDK to decode the program's numbered errors. Check the transaction logs to identify the program that reported the error. An invoked program can reuse the same numeric code.

CodeMeaningWhat to check
3002Permission deniedConfirm the authority belongs to the wallet and can perform the operation.
3005Invalid message hashRebuild the approval for the intended instructions, accounts, cluster and deployment.
3006Signature reusedRefresh the authority state and request a fresh passkey approval.
3007Signature too oldPrepare the approval again with a fresh slot.
3009Session expiredRegister a fresh session and replace the stored session key.
3014Deferred authorization expiredPrepare a new approval. The original payer can reclaim the expired record's rent.
3015Deferred hash mismatchUse the payload returned when the approval was created.
3017Unauthorized reclaimSign with the payer recorded on the deferred account.
3020–3032Session actions or account constraintsReview the session rules, asset balances and vault account ownership.
4001–4007Protocol fee setupCheck the selected deployment's fee configuration, treasury and payer.

For a paymaster error, inspect its response and check whether the request returned a signature. When the outcome is unknown, query the original signature before retrying the payment. See Troubleshooting.