This Go program interacts with a StarkNet testnet through RPC calls to deploy and invoke transactions.
- Go installed on your machine
- Access to a StarkNet testnet
rpc.jsonfile containing RPC endpoint information
-
Install Go version 1.22.0 by executing the following commands:
wget https://golang.org/dl/go1.22.0.linux-amd64.tar.gz tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin
-
Verify the installation by checking the Go version:
go version
-
Clone this repository to your local machine:
git clone https://github.com/shidiqmuh0/avail-madara.git cd avail-madara -
Update the
rpc.jsonfile with the RPC endpoint information.nano rpc.json
-
Ensure dependencies are up to date:
go mod tidy
-
Start a new screen session:
screen -S tx
-
Run the following command to execute the program:
go run main.go
-
Detach from the screen session by pressing
Ctrl + Afollowed byD. This will leave the program running in the background.