https://github.com/paramsiddharth/web3-transactions
Random transactions, to-and-fro the self and a peer.
https://github.com/paramsiddharth/web3-transactions
Last synced: 4 months ago
JSON representation
Random transactions, to-and-fro the self and a peer.
- Host: GitHub
- URL: https://github.com/paramsiddharth/web3-transactions
- Owner: paramsiddharth
- Created: 2022-10-26T19:46:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T12:44:51.000Z (over 2 years ago)
- Last Synced: 2024-05-22T20:21:14.553Z (about 1 year ago)
- Language: Java
- Size: 157 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web3 - Random Transactions
Random transactions, to-and-fro the self and a peer.## Instructions
Start by setting up a local, and preferably persistent, Ethereum blockchain.
```bash
npm ci
npx ganache -v -d --database.dbPath ./blk -i 344 -a 25
```Choose from the output and add the relevant variables to a `.env` file in the root.
```env
# Required
WEB3_SELF_ADDRESS=""
WEB3_SELF_KEY=""WEB3_PEER_ADDRESS=""
WEB3_PEER_KEY=""# Optional
WEB3_PROVIDER=""
```Following are the instructions to run the application with different frameworks.
### [Web3.js](https://web3js.readthedocs.io/)
Web3.js is an Ethereum client for JavaScript.
```bash
npx ts-node index.ts
```### [Web3.py](https://web3py.readthedocs.io/)
Web3.py is an Ethereum client for Python.
```bash
python -m venv env
. ./env/bin/activate
pip install -r requirements.txt
python app.py
```### [Web3j](https://docs.web3j.io/)
Web3j is an Ethereum client for Java.
```bash
cd java/Web3Transactions
sdk env
mvn clean install
mvn package
java -jar target/Web3Transactions-1.0-SNAPSHOT-jar-with-dependencies.jar
```### [Go-Ethereum](https://geth.ethereum.org/)
Go-Ethereum is an Ethereum client for Go.
```bash
go mod download
go run .
```### [Rust-Web3](https://docs.rs/web3/latest/web3//)
Rust-Web3 is an Ethereum client for Rust.
```bash
cd rust
cargo run
```# Made with ❤ by [Param](https://www.paramsid.com).