OriginTrail
Search…
DKG v6 node configuration
Configuration file (.origintrail_noderc) should be located in your "ot-node" directory. Inside of your .origintrail_noderc file you can configure certain parameters such as:
"blockchainTitle": Title of the blockchain your node will use.
​
"networkId": Network/Blockchain identity you wish your node to connect to.
​
"rpcEndpoints": Endpoint/URL which your node will use in order to communicate with blockchain. OriginTrail v6 Beta node is currently running on Polygon Mumbai (testnet) network. Polygon Mumbai RPC: https://matic-mumbai.chainstacklabs.com/.
​
"publicKey": Operational wallet address which your node will use. At this time, it needs MATIC test tokens for Polygon Mumbai (testnet) so please make sure it is funded in order for your node to function properly.
​
"graphDatabase": Currently, OriginTrail v6 Beta node is supporting two graph databases: GraphDB and Blazegraph
Check the following documentation in order to setup the database of your choice.
Please make sure that your configuration is properly set based on the installed graph database.
For GraphDB:
1
"graphDatabase":{
2
"username":"admin",
3
"password":""
4
},
Copied!
For Blazegraph:
1
"graphDatabase": {
2
"implementation": "Blazegraph",
3
"url": "http://localhost:9999/blazegraph",
4
"username": "admin",
5
"password": ""
6
},
Copied!
​
"networkId": When you start your node for the first time, it will generate its network identity and populate the "network" block automatically. Leave it blank as shown in the example file at the end of this page. When the network identity for your node is generated, your configuration file will look as shown below:
1
"network": {
2
"privateKey": "CAAS4AQwggJcAgEAAoGBAMM/4ShUnuFPxY..."
3
},
Copied!
Do not remove or edit your network identity.
​
"ipWhitelist": Whitelist desired IP addresses here in order to access you node trough the API.
1
"ipWhitelist":[
2
"::1",
3
"127.0.0.1",
4
"..."
5
]
Copied!
Please check the DKG v6 API documentation here.
​
OriginTrail v6 node configuration file example:
1
{
2
"blockchain":[
3
{
4
"blockchainTitle":"Polygon",
5
"networkId":"polygon::testnet",
6
"rpcEndpoints":[
7
"https://matic-mumbai.chainstacklabs.com/"
8
],
9
"publicKey":"0x123123123...",
10
"privateKey":"ec0e6c36bd88342..."
11
}
12
],
13
"graphDatabase":{
14
...<add parameters based on your database choice>...
15
},
16
"logLevel":"trace",
17
"rpcPort":8900,
18
"network":{
19
20
},
21
"ipWhitelist":[
22
"::1",
23
"127.0.0.1",
24
"<whitelist_IP_here>"
25
]
26
}
Copied!
Copy link