Logos Kit

Errors

What can go wrong, and what to show.

Errors are { code, message, data? }. Codes follow EIP-1193 and EIP-5792 where those exist, so habits carry over.

A user saying no is not an error. Check kit.sdk.isUserRejection(e) and show nothing (or "Cancelled").

CodeNameWhat to show
4001UserRejectednothing
4100Unauthorized"Connect again": the account isn't shared with this app (any more)
4200UnsupportedMethodthis wallet doesn't do that
4900Disconnectedthe wallet is locked or not set up
4901ChainDisconnectedcan't reach the network; retry later
4902UnknownChainthe wallet is on another network
-32602InvalidParamsa bug in your call
-32603Internalthe wallet couldn't complete it (the user saw why)
5720DuplicateIdthis proposal id was used; data has the first handle
5730UnknownHandlenot your handle, or expired
6100AccountKindUnsupportede.g. a private account where only public works
6102ProofFailedproving failed; nothing was sent
6103SubmissionFailedthe network refused it
6104InvalidProposalthe wallet can't build or decode your proposal
6106StaleApprovalchain state moved since approval; propose again
6107RequestPendinga wallet sheet is already open for your app
6108Timeoutno answer yet: the wallet may still send it
6109Unavailableno wallet, or no faucet on this network

Through Basecamp intents the shell carries only six codes (cancelled, bad_request, failed, timeout, unavailable, not_declared); the SDK maps them to the table above. not_declared means your metadata.json uses doesn't list the intent.