Use Go
Send a regular transaction from one account to another with Go.
Prerequisites
- Go installed.
- An Ethereum account containing some Sepolia test ETH.
info
Use MetaMask or similar to create an Ethereum account for testing.
Steps
1. Create a project directory
Create a new directory:
mkdir infura
cd
into the directory:
cd infura
2. Initialize the directory and install the dependencies
go mod init infura
go get github.com/ethereum/go-ethereum/common
go get github.com/ethereum/go-ethereum/core/types
go get github.com/ethereum/go-ethereum/crypto
go get github.com/ethereum/go-ethereum/rpc@v1.10.17