Overview
The Polygon gateway acts as a bridge between your Polygon 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.
For validators
Step 1: Contact us to set up a fully managed dedicated gateway for you.
Step 2: Add the gateway as a persistent peer to your polygon node by adding it in the TrustedNodes
array.
# Use the identity obtained above
[Node.P2P]
TrustedNodes = ["enode://<identity>@ip:port"]
That's it!
Manual setup
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 polygon keystore create
Step 2: Create the gateway (currently using staking data from kovan)
sudo marlinctl gateway polygon create --bootstrap-addr "54.193.224.20:8002"
Step 3: Retrieve the polygon identity of the gateway by checking the logs
sudo marlinctl gateway polygon logs
Step 4: Add the gateway as a persistent peer to your polygon node by adding it in the TrustedNodes
array.
# Use the identity obtained above
[Node.P2P]
TrustedNodes = ["enode://<identity>@<ip>:<port>"]
That's it!