Engine JsonRpc Configuration Example
In this page we will layout an example configuration for the JsonRpc module.
Cli
Config
./Nethermind.Runner \
--JsonRpc.EnginePort=8551 \
--JsonRpc.JwtSecretFile="keystore/jwt-secret"
or
./Nethermind.Runner \
--JsonRpc.EnginePort=8551 \
--JsonRpc.EngineHost=0.0.0.0 \
--JsonRpc.JwtSecretFile="keystore/jwt-secret"
"JsonRpc": {
"Enabled": true,
"Timeout": 20000,
"Host": "127.0.0.1",
"Port": 8545,
"EnabledModules": ["Eth", "Subscribe", "Trace", "TxPool", "Web3", "Personal", "Proof", "Net", "Parity", "Health"],
"EnginePort": 8551,
"JwtSecretFile": "keystore/jwt-secret"
},
or
"JsonRpc": {
"Enabled": true,
"Timeout": 20000,
"Host": "127.0.0.1",
"Port": 8545,
"EnabledModules": ["Eth", "Subscribe", "Trace", "TxPool", "Web3", "Personal", "Proof", "Net", "Parity", "Health"],
"EnginePort": 8551,
"EngineHost": "0.0.0.0",
"JwtSecretFile": "keystore/jwt-secret"
},
In the first example above the consensus client can connect to Nethermind on the port 8551 if the consensus client is on the same machine. JsonRpc for other things is available at port 8545 on the same machine.
If you want to use a consensus client that's on a different machine, you can add the JsonRpc.EngineHost parameter and use 0.0.0.0 like the second example above. This will expose the JsonRpc.Engine to the outside.

if you want to changeJsonRpc.EngineHost, JsonRpc.EnginePort should be specified as well.

Copy link