Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dhruv-2003/evm-simulation
- Owner: Dhruv-2003
- Created: 2024-07-05T14:39:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T00:28:40.000Z (4 months ago)
- Last Synced: 2024-10-08T03:41:42.859Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
## 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