docs: update rpc server docs (#24740)

* docs update rpc server default namespaces

* docs update rpc server call out overwrite
This commit is contained in:
muang0 2022-04-23 08:46:23 -04:00 committed by GitHub
parent d0815e2a28
commit f19b3ccdc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -32,11 +32,11 @@ The default listening port is 8545. You can customize address and port using the
JSON-RPC method namespaces must be whitelisted in order to be available through
the HTTP server. An RPC error with error code `-32602` is generated if you call a
namespace that isn't whitelisted. The default whitelist allows access to the "eth"
and "shh" namespaces. To enable access to other APIs like account management ("personal")
and debugging ("debug"), they must be configured via the `--http.api` flag. We do
not recommend enabling such APIs over HTTP, however, since access to these
methods increases the attack surface.
namespace that isn't whitelisted. The default whitelist allows access to the "eth", "net"
and "web3" namespaces. To overwrite the default whitelist and enable access to other APIs
like account management ("personal") and debugging ("debug"), they must be configured via the
`--http.api` flag. We do not recommend enabling such APIs over HTTP, however,
since access to these methods increases the attack surface.
geth --http --http.api personal,eth,net,web3