The ZKEVM RPC relays transactions to the Trusted sequencer.
The preferred way to run the ZKEVM RPC component is via Docker and Docker Compose.
docker pull hermeznetwork/zkevm-node
To orchestrate multiple deployments of the different ZKEVM Node components, a docker-compose.yaml
file for Docker Compose can be used:
zkevm-rpc:
container_name: zkevm-rpc
image: zkevm-node
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --genesis /app/genesis.json --cfg /app/config.toml --components rpc"
The container alone needs some parameters configured, access to certain configuration files and the appropriate ports exposed.
- ports:
8545:8545
: RPC Port9091:9091
: Needed if Prometheus metrics are enabled
- environment: Env variables that supersede the config file
ZKEVM_NODE_STATE_DB_HOST
: Name of StateDB Database HostZKEVM_NODE_POOL_HOST
: Name of PoolDB Database HostZKEVM_NODE_RPC_DB_HOST
: Name of RPCDB Database Host
- volumes:
your config.toml file
: /app/config.tomlyour genesis file
: /app/genesis.json