web3-snippets
web3-snippets
is a curated collection of Golang code snippets, designed to help developers interact with both EVM and non-EVM based blockchains. Whether you are building a decentralized application, a smart contract, or exploring blockchain technology, this repository serves as a handy toolkit for your Web3 development journey.
π Features
- EVM Compatible Snippets: Code snippets for interacting with Ethereum and other EVM-compatible blockchains.
- Non-EVM Compatible Snippets: Diverse snippets for working with various non-EVM based blockchains.
- Golang Focused: All snippets are written in the Go programming language, leveraging its efficiency and scalability.
π Structure
The repository is organized into the following directories:
evm-snippets
: Contains snippets for EVM-compatible blockchains.
non-evm-snippets
: Houses code snippets for non-EVM based blockchains.
Each directory further categorizes snippets based on the specific blockchain or functionality.
π‘ Usage
-
Clone the Repository
git clone https://github.com/hajbabaeim/web3-snippets.git
-
Navigate to the Desired Snippet
cd cmd/{non-}evm-snippets/snippet-name/main.go
-
Run the Snippet
go run main.go
π Contributing
Contributions are welcome! Feel free to submit a pull request or create an issue if you have a snippet to add or find a bug.
Fork the Repository
Create a New Branch
Commit Your Changes
Push to the Branch
Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, please feel free to open an issue or reach out to the maintainer.