-
-
Published
Linked with GitHub
# Chainlink Node Operator guide
## Services run by operators:
- Centrifuge Node
- Chainlink Centrifuge Adapter
### Running Centrifuge Node:
The following developer guide contains the steps to start a Centrifuge Node in your network.
https://developer.centrifuge.io/cent-node/overview/introduction/
**Note:**
- For testing, please use `Amber` testnet for Centrifuge Chain. Url: `wss://fullnode.amber.centrifuge.io`
- Only P2P port should be publicly exposed for Node to communicate with other Nodes in the network.
- Remainaing APIs should not be exposed publicly.
Once the Node is up and running, you would need to note follwoing details to start the Chainlink Centrifge Adapter
- CENTRIFUGE_ID: Hex string Identity of the node.
- Use https://developer.centrifuge.io/cent-node/getting-started/install-cent-node/#look-up-your-centrifuge-id to extract the Centrifuge ID from the generated config
- CENTRIFUGE_NODE_URL: Node's URL that could be reached by the Adapter to fetch the required data **(without trailing slash)**.
- Example: http://127.0.0.1:8082
### Running Chainlink Centrifuge Adapter:
Once the Centrifuge node is running, its time to start the adapter.
#### Environment Variables
These envs are required to run the adapter. Replace the values accordingly.
```
export CENTRIFUGE_ID="<replace this with CENTRIFGE_ID collected above>"
export CENTRIFUGE_NODE_URL="<replace this with URL collected above without trailing `/`>"
```
Once the environment variables are set, start the adapter using the following command.
```
docker run -d -p 8083:8083 -e CENTRIFUGE_ID="${CENTRIFUGE_ID}" -e CENTRIFUGE_NODE_URL="${CENTRIFUGE_NODE_URL}" centrifugeio/chainlink-adapter:latest
```
## Post services start:
Do give your Centrifuge ID and Chainlink JobID so that we can include your Centrifuge Nodes while creating the documents so that your Nodes will have offchain data that can polled by the Oracle through adapter.