Servers summary:
- RPC exposed as POST request to any path (except for
/api/*) - Validates Host headers and returns proper CORS headers (doesn't process request if CORS is invalid)
- When Dapps enabled, additionally:
a) Serves network and builtin dapps
b) Exposes
/api/and/parity-utilsc) Main page redirects to UI (if enabled)
--jsonrpc-interface IFACE=localhost
Interface to listen on
--jsonrpc-port PORT=8545
Port to listen on
--jsonrpc-cors CORS=None
CORS headers validation
--jsonrpc-hosts HOSTS=<jsonrpc-interface>:<jsonrpc-port>
Host headers
--jsonrpc-apis APIS=safeapis
List of APIs exposed on this server.
--jsonrpc-threads THREADS=1
Enables fast multi-threaded RPC server.
Implies --no-dapps
--no-dapps=false
Disables dapps support, enables fast JSONRPC-HTTP server.
--no-jsonrpc=false
Disables JSON-RPC server entirely.
--dapps-path=$BASE/dapps
Local dapps path
- Connecting with token gives you all APIs
- Connecting without token gives you standard (public) APIs available for Dapps
- Validates Origin and Host headers.
- GET / request redirects to UI (if enabled)
--ws-interface IFACE=localhost
Interface to listen on
--ws-port PORT=8546
Port to listen on
--ws-origins ORIGINS=<jsonrpc-interface>:<jsonrpc-port>,<ui-interface>:<ui-port>
Origins allowed to connect
--ws-hosts HOSTS=<ws-interface>:<ws-port>
Valid host headers
--ws-apis APIs=safeapis,pubsub
List of exposed APIs
--ws-tokens-path PATH
Directory where tokens to access full API set are stored.
--no-ws
Disables WebSockets server entirely.
Implies --no-ui
- Serves main UI stuff
- Validates Host header
- Exposes
/api, but without any CORS (only accessible by UI)
--ui-interface IFACE=localhost
Interface to listen on (displays a warning if not localhost)
--ui-port PORT=8180 (or 8080)
Port to listen on
--ui-hosts HOSTS=<ui-interface>:<ui-port>
Valid host header values
--no-ui
Disables UI server entirely
--force-ui
Enables UI even when in --geth and --unlock mode.
--port-shift=0
Shift all ports Parity listens to, eg:
ui-port = <ui-port>+<port-shift>
Affected options:
--ui-port, --jsonrpc-port, --ws-port, --port, --ipfs-api-port, --secretstore-port,
--ui-path now called --ws-tokens-path)
--ui-no-validation equivalent of --ui-hosts all
--dapps-* non-applicable, dapps server merged with JSON-RPC
local | localhost = 0.0.0.0
all = 0.0.0.0
null - Null origin
* | any | all - All origins (except for null)
* | all | any - All hosts
all - All APIs exposed (warning should be printed)
readonly - Read only APIs exposed (safe APIs)
- remove
/api/dapps, replace with unsafe RPC call.