adding cli extension
This commit is contained in:
parent
1554d5adef
commit
ed0047725c
@ -101,7 +101,7 @@ API and Console Options:
|
|||||||
--jsonrpc-port PORT Specify the port portion of the JSONRPC API server [default: 8545].
|
--jsonrpc-port PORT Specify the port portion of the JSONRPC API server [default: 8545].
|
||||||
--jsonrpc-cors URL Specify CORS header for JSON-RPC API responses [default: null].
|
--jsonrpc-cors URL Specify CORS header for JSON-RPC API responses [default: null].
|
||||||
--jsonrpc-apis APIS Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited
|
--jsonrpc-apis APIS Specify the APIs available through the JSONRPC interface. APIS is a comma-delimited
|
||||||
list of API name. Possible name are web3, eth and net. [default: web3,eth,net].
|
list of API name. Possible name are web3, eth and net. [default: web3,eth,net,personal].
|
||||||
--rpc Equivalent to --jsonrpc (geth-compatible).
|
--rpc Equivalent to --jsonrpc (geth-compatible).
|
||||||
--rpcaddr HOST Equivalent to --jsonrpc-addr HOST (geth-compatible).
|
--rpcaddr HOST Equivalent to --jsonrpc-addr HOST (geth-compatible).
|
||||||
--rpcport PORT Equivalent to --jsonrpc-port PORT (geth-compatible).
|
--rpcport PORT Equivalent to --jsonrpc-port PORT (geth-compatible).
|
||||||
@ -208,6 +208,7 @@ fn setup_rpc_server(client: Arc<Client>, sync: Arc<EthSync>, secret_store: Arc<A
|
|||||||
server.add_delegate(EthClient::new(&client, &sync, &secret_store).to_delegate());
|
server.add_delegate(EthClient::new(&client, &sync, &secret_store).to_delegate());
|
||||||
server.add_delegate(EthFilterClient::new(&client).to_delegate());
|
server.add_delegate(EthFilterClient::new(&client).to_delegate());
|
||||||
}
|
}
|
||||||
|
"personal" => server.add_delegate(PersonalClient::new(&secret_store).to_delegate()),
|
||||||
_ => {
|
_ => {
|
||||||
die!("{}: Invalid API name to be enabled.", api);
|
die!("{}: Invalid API name to be enabled.", api);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user