Skip to content
Documentation/canton-network-docs/SDKsdApp SDKAPI ReferenceView on canton-network-docs
canton-network-docs/SDKsdApp SDKAPI Reference

Errors

The dApp API adopts standardized error codes from EIP-1193 and EIP-1474. Branch on the code rather than the message string.

Error codes

CodeMessageMeaning
4001User Rejected RequestThe user rejected the request.
4100UnauthorizedThe requested method or account has not been authorized.
4200Unsupported MethodThe provider does not support the requested method.
4900DisconnectedThe provider is disconnected from all chains.
4901Chain DisconnectedThe provider is not connected to the requested chain.
-32700Parse errorInvalid JSON.
-32600Invalid requestJSON is not a valid request object.
-32601Method not foundMethod does not exist.
-32602Invalid paramsInvalid method parameters.
-32603Internal errorInternal JSON-RPC error.
For the complete specification, see CIP-103.
  • Provider API — The methods that can return these errors.