module
0.0.0-20240721125919-75b752656416
Repository: https://github.com/ivxivx/demo-blockchain.git
Documentation: pkg.go.dev
# README
Overview
The project demostrates how to create a transaction on blockchains.
Normally there are 4 steps invovled:
- Build transaction payload (i.e. retrieve gas price, nonce for ethereum)
- Sign the payload
- Broadcast signed payload to blockchain
- Monitor transaction status on blockchain and modify transaction once confirmed or failed (SSE is used to udpate frontend)
Supported blockchains include:
- Ethereum local testnet (Ganache)
Notes: The same code can be used for Ethereum, Polygon, and other EVM compatible networks. Networks other than local testnet are not included because they need a third party node provider, such as Infura, for retrieving nonce, gas price, etc.
How to Use
- Install dependencies:
go get -d ./...
- Start the testnet Docker container:
make infra-up
- Launch the demo app:
go run internal/blockchain/demo/main.go
- Then go to the URL: http://localhost:9111

# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author