Saga
Prerequisites
Install Go (version ≥ 1.19) Download and install Go from https://golang.org/dl/.
Install Git Install Git to clone repositories.
Step 1: Install Saga CLI
Clone the Saga repository:
git clone https://github.com/saga-protocol/saga.git cd saga
Build the CLI:
make install
After successful installation, verify the version:
sagad version
Step 2: Configure the CLI for Testnet
Initialize the configuration:
sagad init <your-node-name> --chain-id=saga-testnet
Add the Saga testnet configuration: Download the
genesis.json
:curl -O https://docs.saga.xyz/testnet/genesis.json mv genesis.json ~/.sagad/config/
Set seeds and peers: Edit
config.toml
:nano ~/.sagad/config/config.toml
Add the following in the
persistent_peers
section:persistent_peers = "<peer-list>"
Configure
minimum-gas-prices
: Openapp.toml
:nano ~/.sagad/config/app.toml
Set:
minimum-gas-prices = "0.025usaga"
Step 3: Start the Node
Run the node:
sagad start
If successful, the node begins syncing with the testnet.
Step 4: Create a Wallet
Generate a wallet:
sagad keys add <wallet-name>
Save the mnemonic securely.
Retrieve your wallet address:
sagad keys show <wallet-name> -a
Request testnet tokens: Use a faucet (check https://faucet.saga.xyz or similar sources).
Step 5: Perform Transactions
Check your balance:
sagad query bank balances <wallet-address>
Send tokens:
sagad tx bank send <your-address> <recipient-address> 100000usaga --chain-id=saga-testnet --fees=5000usaga
Step 6: Query Network Information
Check the latest block:
sagad query block
Query transaction history:
sagad query txs --events 'message.sender=<wallet-address>'
Troubleshooting
Logs: Check logs in real-time:
tail -f ~/.sagad/logs/sagad.log
Sync Issues: Ensure the node is fully synced before performing transactions:
sagad status
Last updated