Symptoms: status is ERROR, error is set
Solutions:
- Check that
wdkConfigsare valid (usevalidateWdkConfigs()) - Check console logs for detailed error messages
- Try calling
retry()method from context
Common Errors:
- "WDK not initialized" → Worklet failed to start, check network configs
- "Biometric authentication required" → User cancelled or device doesn't support biometrics
- "Encryption key not found" → Secure storage issue, may need to recreate wallet
Symptoms: Balances not updating, isLoading stuck true
Solutions:
- Verify
assetproperties are correct (especially address and network) - Check network connectivity and RPC endpoint availability
- Ensure wallet is initialized (
status === 'READY') - Check token addresses are valid Ethereum addresses
Symptoms: Runtime errors about invalid types
Solutions:
- Use
validateWdkConfigs()before passing to provider - Ensure token addresses match Ethereum address format
- Verify account indices are non-negative integers
- Use type guards from exports for runtime validation