Running a SagaEVM Full Node
You can run SagaEVM as a full node in your own environment. The instructions provided below are for launching a full node using docker-compose but they can be adapted for systemd service, docker, kubernetes or your favorite orchestrator.
Please ensure you have docker and docker-compose installed on your local machine where you wish to launch the SagaEVM full node.
SagaEVM currently supports feeless transactions via https://sagaevm.jsonrpc.sagarpc.io. We recommend using your local SagaEVM node for querying purposes only, and using the feeless transactions RPC for submitting all transactions.
Copy and paste the following code snippet into a local file on your machine. In this example, we will assume it is
docker-compose.yml
version: '3'
services:
sagaevm-fullnode:
container_name: sagaevm-fullnode
image: "sagaxyz/sagaos:0.14.1"
command: ["./start-fullnode.sh"]
environment:
- CHAIN_ID=sagaevm_5464-1
- DENOM=gas
- GENESIS_URL=https://saga-public-assets.s3.us-east-1.amazonaws.com/genesis/mainnet/sagaevm_5464-1_genesis.json
- MONIKER=sagaevmfullnode
- [email protected]:26014,[email protected]:17300,[email protected]:11156,[email protected]:11156,[email protected]:11156
- PRUNING=default # or nothing if you want to run an archive node
- SYNC_RPC=https://sagaevm-5464-1-cosmosrpc.jsonrpc.spsrv1.sagarpc.io:443,https://sagaevm-5464-1-cosmosrpc.jsonrpc.spsrv2.sagarpc.io:443
networks:
localnet:
ipv4_address: 192.168.0.10
networks:
localnet:
driver: bridge
ipam:
driver: default
config:
-
subnet: 192.168.0.0/16After saving the file, run
docker-compose up sagaevm-fullnode
A list of environment variables, and their values are provided in the code snippet above. These can be used and adapted to launch your local SagaEVM node via kubernetes or any other orchestrator.
Last updated