CLI

How to install & interact with MAYACli.

Install (Mac)

Prerequisites

  1. xcode-select xcode-select --install

  2. Homebrew: 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:$GOBIN

Protobuf

# Install Protobuf
brew install protobuf
brew install protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go@latestellina

GNU Utils

Docker

MAYANode

Commands

mayanode --help

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?