OptionalcauseReadonlyheadersThe response headers (lower-cased names), e.g. headers['retry-after'].
Typed structurally rather than as node:http's IncomingHttpHeaders so the
declarations do not require consumers to install @types/node.
Optional ReadonlyresponseThe response's own message field (e.g. "NOTOK"), if any. Kept apart
from message, which usually carries the more specific result text.
Optional ReadonlyresultThe raw result (or error) field from the response, if any.
OptionalstackOptional ReadonlystatusThe raw status field from the response, if any.
ReadonlystatusThe HTTP status code, e.g. 429.
Static OptionalprepareOptional override for formatting stack traces
Staticstack
Error thrown by the default transport when Etherscan answers with a non-2xx HTTP status. Carries the status code and response headers so callers can tell a 429 from a 5xx and honour
Retry-After. It extends EtherscanError: the same condition (a rate limit, say) can arrive as a 200 with status "0" or as a 429, and oneinstanceofcheck catches both.