LagomChain CLI
Last updated
Last updated
lagomd
is the all-in-one command-line interface (CLI) for interacting with the LagomChain blockchain. It allows you to run a node, manage wallets, query blockchain data, and submit transactions. This guide will walk you through installing lagomd
, running a LagomChain node, and interacting with the network.
Go
LagomChain is built using 1.20+. Check your installed version with:
Ensure that your GOPATH is correctly configured by running:
Add this to your shell startup script for persistence.
jq
LagomChain scripts are using version 1.6+
. Check your version with:
You can download the latest binaries from the repo and install them, or you can build and install the lagomd
binaries from source or using Docker.
Visit the LagomChain GitHub Releases page.
Select the latest stable release for your OS.
Download and extract the binaries.
Move lagomd
to your system path:
Verify installation:
Clone and build LagomChain from source:
Confirm installation:
If you encounter command not found
, check that Go is properly installed and configured.
To interact with LagomChain locally, you can run a full node that produces blocks and exposes both EVM and Cosmos endpoints. This allows you to deploy smart contracts, test transactions, and explore blockchain data.
Run the local node by executing the local_node.sh
script in the base directory of the repository:
The script stores the node configuration including the local default endpoints under ~/.tmp-lagomd/config/config.toml
. If you have previously run the script, the script allows you to overwrite the existing configuration and start a new local node.
Once running, you should see logs indicating block production:
lagomd
After installing lagomd
, you can interact with LagomChain using various commands. To see available options:
Managing Multiple Node Configurations If you’re running multiple nodes, specify a config directory using:
You can use lagomd
to store private keys, manage accounts, and sign transactions directly via CLI.
Example Output:
For more key management options, run:
tip
You can use lagomd
to query blockchain data and submit transactions.
By default, the local node runs on:
To view the current node configuration:
Example Output:
To switch to a mainnet or testnet node, update the RPC endpoint using the new LagomChain RPC URLs:
or
Queries
You can fetch blockchain data using the lagomd query
command (short form: lagomd q
).
Example Output:
To see all available queries:
For bank-related queries:
Transactions
You can send transactions using lagomd tx
.
Example Output:
To see all available transaction commands:
For bank transaction commands:
When it comes to using Docker with LagomChain, there are two options available: Build a binary of the LagomChain daemon inside a dockerized build environment or build a Docker image, that can be used to spin up individual containers running the LagomChain binary. For information on how to achieve this, proceed to the dedicated page on .
For more information on how to customize a local node, head over to the page.
For more information about the Keyring and its backend options, click .
Learn about more node configurations .
Now that you've learned the basics of how to run and interact with an LagomChain network, head over to for further customization.