Wallet API Error Codes: Comprehensive Reference Guide

ยท

Introduction to Wallet API Error Handling

When integrating with Web3 wallet services, understanding error codes is crucial for effective debugging and user experience optimization. This guide provides a detailed breakdown of all error codes returned by the Wallet API, along with troubleshooting recommendations.

๐Ÿ‘‰ Explore OKX's complete Web3 API documentation

Wallet API Error Code Reference Table

Below is the complete list of error codes with their corresponding HTTP status codes and messages:

Error CodeHTTP StatusMessage Description
50001200Service temporarily unavailable, please retry later
50026500System busy, please try again later
81104200Blockchain not supported
81105200Wallet verification error
81106200Address must be lowercase
81107200Too many wallet addresses
81108200Wallet type mismatch
81109200Address update error
81150200Chain not supported by this endpoint
81151200Invalid token address
81152200Token does not exist
81153200Platform token detected (no need to add)
81157200Blockchain/address mismatch
81158200Unsupported token protocol
81159200Data caching in progress, please retry
81201200Transaction not found
81202200Transaction pending confirmation
81203200Transaction extjson parameter missing
81302200FromAddress doesn't belong to account ID
81351200Insufficient balance for payment
81353200Invalid address format
81451200Node returned failure

Common Error Categories

Blockchain-Related Errors (81xxx series)

Wallet Management Errors

Token Operation Errors

Transaction Processing Errors

๐Ÿ‘‰ Get started with Wallet API integration

FAQ Section

What should I do when receiving error 50001/50026?

These indicate temporary service interruptions. Implement exponential backoff in your retry logic, waiting 1-5 seconds between attempts.

How to resolve "address must be lowercase" (81106)?

Ensure all address parameters are converted to lowercase before API submission. Most Web3 libraries provide address normalization functions.

What does "node returned failure" (81451) mean?

This suggests the blockchain node couldn't process your request. Verify your transaction parameters are valid for the target network, and consider retrying with adjusted gas parameters.

How to handle "insufficient balance" (81351) errors?

First verify the wallet's native token balance covers both the transaction amount and network fees. For token transfers, remember to account for approval transactions.

Why am I getting "wallet type mismatch" (81108)?

This occurs when attempting operations incompatible with your wallet configuration (e.g., using EOA methods with smart contract wallets). Review the API documentation for wallet-type requirements.

Best Practices for Error Handling

  1. Implement comprehensive logging of all API responses
  2. User-friendly messaging that translates technical codes
  3. Automatic retry logic for temporary failures
  4. Parameter validation before API submission
  5. Monitor error rates to detect integration issues

For complete API documentation and additional resources, visit our developer portal.

๐Ÿ‘‰ Access full Wallet API documentation