The following guide illustrates how to register a new Stream Node instance on Towns Chain. This guide uses Testnet as an example. The Mainnet guide follows from this guide with modifications to contract addresses and rpc url for Towns Chain.
Start Stream Node in Info Mode
Register Node in Towns Chain
Register Node in Base
Start Stream Node
registerNode(address,string,uint8)
method on the RiverRegistry diamond contract.
Operational
status using cast
, a command-line tool that is part of Foundry for reading / writing to EVM chains over RPC url’s.
Operational
status will allow the node to begin accepting stream writes and signal to the network that the node is healthy and ready to be connected to by clients. See all possible node statuses that a node can assume in RegistryStorage.Setup Variables for Registration
Register Node on Base and Towns Chain
cast
let’s register our new node. First let’s check that the Node FE does not already exist. Node FE’s are identified in Towns Registry by their address so let’s check getNode
to ensure the view reverts with NODE_NOT_FOUND
before proceeding.NODE_NOT_FOUND
, let’s proceed to register the new node with the Node Operator’s wallet.getNode(address)
to confirm the node now exists in the network.Check Node Health from Debug Multi Dashboard
$NODE_URL/debug/multi
in a browser to see the node’s http1/2, grpc ping status and related health metrics.As an example, see https://ohare-3.staking.production.figment.io/debug/multi.