The cosmos gateway acts as a bridge between your cosmos node and the Marlin relay network, enabling them to understand and talk to each other. In addition, it handles most of the Marlin related interactions for you like optimizing peer sets, attesting messages, generating tickets, etc.


This section assumes that marlinctl is installed already. See here if you have not installed it.

Step 1: Generate a client identity for the gateway by running the below command and entering a passphrase when prompted

sudo marlinctl gateway cosmos keystore create

Step 2: Create the gateway

sudo marlinctl gateway cosmos create --bootstrap-addr ""

Step 3: Retrieve the cosmos node identity of the gateway by checking keyfile configuration (the alphanumeric NodeID would most likely be different for you).

INFO Keyfile information
 Key     Value                                    
 NodeId  cd276853b1c116f5bf8900b72694fb022800d276 

Step 4: Add the gateway as a persistent peer to your cosmos node by adding  NodeID@SYSTEM-IP:21900  (example cd276853b1c116f5bf8900b72694fb022800d276@ ) in file ~/.gaia/config/config.toml and restarting the cosmos node.

That's it!


Revision #8
Created Thu, Apr 15, 2021 9:16 AM by Supragya Raj
Updated Mon, Aug 30, 2021 11:35 AM by Shabbir Shamsuddin