Skip to main content

Error Format

All AgentWallex API errors follow a consistent JSON format:

Error Types

Common Error Codes

SDK Error Handling

TypeScript

The TypeScript SDK provides typed error classes for specific error types:

Python

Retry Strategy

Use exponential backoff for retries. Only retry on rate_limit_error and internal_error. Do not retry invalid_request_error or authentication_error — those require fixing the request.

HTTP Status Code Reference