JSON RPC
JSON RPC is available via HTTP and WS.
JSON RPC needs to be explicitly switched on in the Netherming config file.
goerli.cfg
1
"JsonRpc": {
2
"Enabled": true,
3
"Host": "127.0.0.1",
4
"Port": 8545
5
}
Copied!
JSON RPC can be also enabled by passing --JsonRpc.Enabled true flag to the Nethermind.Runner or Nethermind.Launcher arguments.
Nethermind.Runner
Nethermind.Launcher
1
./Nethermind.Runner --JsonRpc.Enabled true
Copied!
1
./Nethermind.Launcher --JsonRpc.Enabled true
Copied!
WebSockets, when enabled, will be accessible on the same address/port as HTTP by default, just using the ws:// protocol instead of http:// protocol. You can change the WebSocket port to something else like 8546 if desired.
goerli.cfg
Nethermind.Runner
Nethermind.Launcher
1
"Init": {
2
"WebSocketsEnabled": true
3
},
4
"JsonRpc": {
5
"WebSocketsPort": 8545
6
}
Copied!
1
./Nethermind.Runner --Init.WebSocketsEnabled true --JsonRpc.WebSocketsPort 8545
Copied!
1
./Nethermind.Launcher --Init.WebSocketsEnabled true --JsonRpc.WebSocketsPort 8545
Copied!
Some of the methods listed in this section are not implemented by Nethermind (they will be marked).
Last modified 9mo ago
Copy link