ken
as an example but most of APIs can be used on kcn
and kpn
as well.--${interface}api
command line argument where ${interface}
can be rpc
for the HTTP endpoint or ws
for the WebSocket endpoint.ipc
offers all APIs over the unix socket (Unix) or named pipe (Windows) endpoint without any flag.klay
and net
modules enabled:--rpc
flag.rpc
) or WebSocket (ws
) interfaces will give everyone access to the APIs who can access this interface (DApps, browser tabs, etc). Be careful which APIs you enable. By default Klay enables all APIs over the IPC (ipc
) interface but for rpc
and ws
required modules have to be explicitly enabled.modules
JSON-RPC method can be invoked. For example over an rpc
interface: