Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Error codes thrown by the SDK provider.
ProviderRpcError
interface ProviderRpcError extends Error { code: number message: string data?: unknown }
4001
4100
4200
4900
4901
4902
-32700
-32600
-32601
-32602
-32603
-32000
-32001
-32002
-32003
-32004
-32005
try { await provider.request({ method: 'eth_sendTransaction', params: [tx] }) } catch (error) { if (error.code === 4001) return // User cancelled if (error.code === 4100) return promptConnect() throw error }