Interface OpenSeaRateLimitError

Enhanced Error type for rate limit errors that includes retry-after information

interface OpenSeaRateLimitError {
    cause?: unknown;
    message: string;
    name: string;
    responseBody?: unknown;
    retryAfter?: number;
    stack?: string;
}

Hierarchy

  • Error
    • OpenSeaRateLimitError

Properties

cause?: unknown
message: string
name: string
responseBody?: unknown

The response body from the API

retryAfter?: number

The number of seconds to wait before retrying the request

stack?: string