Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhruv-2003/evm-simulation

Scripts to simulate transactions including tracing for EVM based chains
https://github.com/dhruv-2003/evm-simulation

Last synced: 21 days ago
JSON representation

Scripts to simulate transactions including tracing for EVM based chains

Awesome Lists containing this project

README

        

# EVM Transaction Simulation

## Overview

This project demonstrates an EVM simulation, including tracing against a forked Ethereum mainnet or other chain. Below are the instructions to install dependencies and run the simulation.

## Installation

To install dependencies, run:

```bash
bun install
```

## Running the Simulation

To execute the simulation, run:

```bash
bun run index.ts
```

## RPC Calls Used & How ?

- Method `eth_call` and the actual transaction params : https://ethereum-json-rpc.com/?method=eth_call , returns the response of the call.
- Method `debug_traceCall` only available with certain clients : https://ethereum-json-rpc.com/?method=debug_traceCall , requires the tx `to` , `from` & `data` as inputs and returns the whole trace

## Example response

Screenshot 2024-07-23 at 2 27 21 AM

## Notes

Ensure you have the correct RPC endpoint configured for accessing the Ethereum mainnet or the desired chain fork. Currently I am using the Tenderly Mainnet RPC