Skip to content

codetit4n/rust-web3-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Rust Web3 example

A simple implementation for web3 crate of rust. It query the blockchain node and gets you your approx. ether balance.

Blog with explanation: https://codetitan.hashnode.dev/rust-talk-to-the-ethereum-blockchain

To run the project:

Step 1: Make sure you have cargo and rust installed in your system

Step 2: Rename the .env.example to .env

Step 3: Insert your Infura Key for your network (Mainnet, Rinkeby, Ropsten, etc) and your ethereum account address in the .env file

Step 4: Run the project using

cargo run