Skip to content
docs

simulateUnsupported

simulateUnsupported(err): boolean

Defined in: index.ts:344

Did eth_simulateV1 fail because the node does not serve it (→ eth_call fallback)? Structured first — the JSON-RPC code or viem’s typed error anywhere on the cause chain (-32601: Avalanche, Hyperliquid, MegaETH, Linea, Arc, Morph, Flare) —, then the JSON body of an HTTP error (403 + -32601: zkSync, Celo, Unichain, Sei, X Layer), then a bounded text match on the first TEXT_HEAD characters of details / shortMessage / message (Monad: -32000 “validation: false is not supported yet”). Never a regex over the whole server-supplied text.

unknown

boolean