Your Own RPC Server
For EVM developers and projects, it is not an unreasonable expectation that they should have their own managed EVM endpoints. Relying on public endpoints can introduce additional risk due to centralizaion or improper maintenance, and make them single points of failure.
Astar team highly recommends that projects use and maintain their own EVM endpoints.
Launching an Astar Network endpoint is easy.
The EVM RPC server is disabled by default. To enable it, append the
--enable-evm-rpc flag to the launch string.
astar-collator --chain=shiden --enable-evm-rpc --unsafe-rpc-external
The launch string above will start an Astar Collator on Shiden network, open up an WS/HTTP endpoint on port
We also recommend paying attention to the
--rpc-max-connections parameter. By default this value is relatively small, so it may be beneficial to increase it to a few thousand.