ethers-rs script boilerplate
ethers-rs is a great blockchain scripting framework! This repo contains the essentials I find are useful when reading/writing to EVM chains.
It uses ethers-rs and includes examples for block+event subscriptions, tx signing, and debug tracing. It also automates ABI bindings so you get nice typed Rust structs for interacting with your contracts.
Automated ABI Build Script
- Automated ABI Bindings: Simply place the contract ABI JSON files into the
/abidirectory, and Rust bindings will be generated automatically during the build process.
.env will be read on startup
Compile the project using:
Execute the compiled binary:
bindings: Contains the Rust bindings for interacting with Ethereum smart contracts.
trace: Functionality for tracing and flattening Ethereum transactions.
Feel free to fork the repository and submit pull requests for any enhancements, features, or bug fixes.
Powered by ethers-rs, an Ethereum & Celo library and wallet implementation, written in pure Rust.
For any questions or support, please open an issue or contact cheb.