Coder Social home page Coder Social logo

ethers-rs-boilerplate's Introduction

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 /abi directory, and Rust bindings will be generated automatically during the build process.

Getting Started

Environment Setup

.env will be read on startup

PRIVATE_KEY=your_private_key_here
RPC=your_rpc_url_here

Building

Compile the project using:

bash

cargo build

Running

Execute the compiled binary:

bash

cargo run

Modules

  • bindings: Contains the Rust bindings for interacting with Ethereum smart contracts.
  • trace: Functionality for tracing and flattening Ethereum transactions.

Contributing

Feel free to fork the repository and submit pull requests for any enhancements, features, or bug fixes.

License

MIT License

Acknowledgments

Powered by ethers-rs, an Ethereum & Celo library and wallet implementation, written in pure Rust.

Support

For any questions or support, please open an issue or contact cheb.

ethers-rs-boilerplate's People

Contributors

evmcheb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.