CLI
How to install & interact with MAYACli.
Install (Mac)
Prerequisites
xcode-select xcode-select --installHomebrew: https://brew.sh
GoLang
Install go v1.18.1: https://go.dev/doc/install
# Set PATH
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT:$GOPATH:$GOBINProtobuf
# Install Protobuf
brew install protobuf
brew install protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go@latestellinaGNU Utils
Docker
MAYANode
Commands
mayanode --help
Popular Commands
Add new account
Add existing account (via mnemonic)
List all accounts
Send Transaction
Create Transaction
This will output a file called tx_raw.json. Edit this file and change the @type field from /cosmos.bank.v1beta1.MsgSend to /types.MsgSend.
The tx_raw.json transaction should look like this:
Sign Transaction
This will output a file called tx.json.
Broadcast Transaction
Last updated
Was this helpful?