Web3RpcError.requestUnavailable constructor
Web3RpcError.requestUnavailable([
The wallet cannot serve the request right now: a state switch is in flight, the request was superseded, or a temporary safety gate is closed.
Uses JSON-RPC reserved -32002 ("resource unavailable"), which DApp
libraries already treat as retryable. Deliberately not 4001 — a
wallet-side supersede is not a user rejection.
Implementation
factory Web3RpcError.requestUnavailable([
String message = 'Request temporarily unavailable, please retry',
]) =>
Web3RpcError(-32002, message);