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 the SDK throws and how to handle them.
ProviderRpcError
code
message
data
4001
4100
eth_requestAccounts
4200
4900
4901
4902
appChainIds
-32700
-32600
-32601
-32602
-32603
try { const hash = await sendTransactionAsync({ to, value }) } catch (error) { if (error.code === 4001) { // User cancelled return } if (error.code === 4100) { // Not connected, prompt connect return } throw error }
cause
try { await sendTransactionAsync({ to, value }) } catch (error) { if (error.cause?.code === 4001) { // User cancelled } }
accountsChanged
connect