Setting up your Cosmos Hub Provider will be similar to a Lava Provider.
Follow the steps here for setting up your domain name:
Create the Provider file
Use the command below to generate the .yml file for COSMOSHUB.
RPC=$(cat $HOME/.gaia/config/config.toml | sed -n '/TCP or UNIX socket address for the RPC server to listen on/{n;p;}' | sed 's/.*://; s/".*//')
GRPC=$(cat $HOME/.gaia/config/app.toml | sed -n '/Address defines the gRPC server address to bind to/{n;p;}' | sed 's/.*://; s/".*//')
API=$(cat $HOME/.gaia/config/app.toml | sed -n '/Address defines the API server to listen on./{n;p;}' | sed 's/.*://; s/".*//')
echo "RPC:"$RPC "GRPC:"$GRPC "API:"$API
mkdir $HOME/config
sudo tee << EOF >/dev/null $HOME/config/atom.yml
endpoints:
- api-interface: tendermintrpc
chain-id: COSMOSHUB
network-address:
address: 0.0.0.0:2223
disable-tls: true
node-urls:
- url: ws://127.0.0.1:$RPC/websocket
- url: http://127.0.0.1:$RPC
- api-interface: grpc
chain-id: COSMOSHUB
network-address:
address: 0.0.0.0:2223
disable-tls: true
node-urls:
url: 127.0.0.1:$GRPC
- api-interface: rest
chain-id: COSMOSHUB
network-address:
address: 0.0.0.0:2223
disable-tls: true
node-urls:
url: http://127.0.0.1:$API
EOF
Start the Provider
To start the Cosmos provider process, run the following command.
Change the --geolocation value depending on where you server is located.
Change the --from value depending on the name of your wallet