# Boot node

In order to get an initial list of Gateways, Vocdoni uses boot node servers.

Boot node servers typically provide an HTTP GET endpoint to fetch the list.

# JSON API schema

The data schema used to define a set of boot nodes is a JSON file like the example:

{
   "goerli": {
      "web3": { 
         "endpoints": [
            { "uri": "https://host1/web3" },
            { "uri": "https://host3/web3" }
         ],
         "contracts": {
            "publicRegistry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
            "publicResolver": "0x4B1488B7a6B320d2D721406204aBc3eeAa9AD329",
            "entityResolver": "entities.dev.voc.eth",
            "genesis": "genesis.dev.voc.eth",
            "namespaces": "namespaces.dev.voc.eth",
            "processes": "processes.dev.voc.eth",
            "tokenStorageProofs": "erc20.proofs.dev.voc.eth",
            "results": "results.dev.voc.eth"
         }
      },
      "dvote": [
         { "uri": "https://host1/dvote", "apis": ["file", "vote", "results"], "pubKey": "02325f284f50fa52d53579c7873a480b351cc20f7780fa556929f5017283ad2449"  },
         { "uri": "wss://host2/dvote", "apis": ["vote", "census"], "pubKey": "02325f284f50fa52d53579c7873a480b351cc20f7780fa556929f5017283ad2449"  }
      ]
   }
}
Last Updated: 6/18/2021, 4:45:07 PM