Evm_node_lib_dev.Rpc_server
type evm_services_methods = {
next_blueprint_number : unit ->
Evm_node_lib_dev_encoding.Ethereum_types.quantity Lwt.t;
find_blueprint : Evm_node_lib_dev_encoding.Ethereum_types.quantity ->
Blueprint_types.with_events option Tezos_base.TzPervasives.tzresult Lwt.t;
find_blueprint_legacy : Evm_node_lib_dev_encoding.Ethereum_types.quantity ->
Blueprint_types.Legacy.with_events option Tezos_base.TzPervasives.tzresult
Lwt.t;
smart_rollup_address : Octez_smart_rollup.Address.t;
time_between_blocks : Evm_node_config.Configuration.time_between_blocks;
}
val start_private_server :
rpc_server_family:'f Rpc_types.rpc_server_family ->
?block_production:block_production ->
Evm_node_config.Configuration.t ->
'f Services_backend_sig.tx_container ->
((module Services_backend_sig.S) * 'a) ->
finalizer Tezos_base.TzPervasives.tzresult Lwt.t
start_private_server ~block_production config ctxt
starts the private RPC server with low-level, internal services which should not be exposed to the Internet. If config
does not provide the necessary information to start a private RPC server, then start_private_server
is a no-op.
block_production
is used to tailor the private RPC server to the particular need of the EVM node mode at use, more particularly which methods are available wrt. block production. `Single_node
starts the default private RPC server, as used in the single node sequencer setup, `Disabled
means no block production method is available.
val start_public_server :
is_sequencer:bool ->
rpc_server_family:'f Rpc_types.rpc_server_family ->
l2_chain_id:Evm_node_lib_dev_encoding.L2_types.chain_id option ->
?delegate_health_check_to:Uri.t ->
?evm_services:evm_services_methods ->
?data_dir:string ->
Validate.validation_mode ->
Evm_node_config.Configuration.t ->
'f Services_backend_sig.tx_container ->
((module Services_backend_sig.S) * 'a) ->
finalizer Tezos_base.TzPervasives.tzresult Lwt.t
start_public_server config ctxt
starts the RPC servers as per specified in config
.
The optional argument evm_services_methods
can be used to install the EVM services.
If data_dir
is provided and the host provides the necessary binaries, performance metrics are enabled.