Skip to content
docs

toRelayError

toRelayError(e, options?): RelayError

Defined in: router.ts:89

Any error → the RelayError for the page. Wallet refusals keep their EIP-1193 code (RouterError, ReviewDeclined, a core UserRejectedError → 4001), a node’s own JSON-RPC error keeps its code and revert data; their messages lose URLs. Everything else is -32603 Internal error on the page and goes to options.log in full — transport errors name the RPC URL (often with the provider key in it) and the request.

unknown

RelayErrorOptions = {}

RelayError