Evm_node_lib_dev.Rpc
val main :
data_dir:string ->
evm_node_endpoint:Uri.t ->
?evm_node_private_endpoint:Uri.t ->
config:Evm_node_config.Configuration.t ->
unit ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
The RPC mode exposes a read-only JSON RPC API endpoint, which reuses an existing data-dir. It can be used in conjunction with a node running in sequencer or observer mode. If evm_node_private_endpoint
is provided transactions are sent forward to the private endpoint of its conjunct node.
val spawn_main :
exposed_port:int ->
protected_endpoint:Uri.t ->
?private_endpoint:Uri.t ->
data_dir:string ->
unit ->
Rpc_server.finalizer
spawn_main ~exposed_port ~redirection_endpoint ~data_dir
spawn an RPC process that listens to exposed_port
, connects to protected_endpoint
and private_endpoint
when specified, and reads the config in data_dir
.