Using JsonRpcProvider (ethers v6 and v5)
- Ethers 6
- Ethers 5
ethers-6/json-rpc-provider.ts
eth_* method or a Tenderly extension like tenderly_simulateTransaction through the provider. See the full JSON-RPC reference for every supported method and network.
Using WebSocket provider
- Ethers 6
- Ethers 5
ethers-6/wss-provider.ts