laconicd-deprecated/docs/api/json-rpc/running_server.md
Federico Kunze Küllmer 10f0164181
docs: additional content (#430)
* docs: additional content

* testnet and intro
2021-08-11 12:51:18 +00:00

752 B

Running the Server

Learn how to run and setup the JSON-RPC server on Ethermint. {synopsis}

Enable Server

To enable RPC server use the following flag (set to true by default).

ethermintd start --evm-rpc.enable

Defining Namespaces

Eth,Net and Web3 namespaces are enabled by default. In order to enable other namespaces use flag --evm-rpc.api.

ethermintd start --evm-rpc.api eth,txpool,personal,net,debug,web3,miner

CORS

If accessing the RPC from a browser, CORS will need to be enabled with the appropriate domain set. Otherwise, JavaScript calls are limit by the same-origin policy and requests will fail:

ethermintd start --evm-rpc.enable-unsafe-cors