Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.32 KB

rpc.md

File metadata and controls

45 lines (34 loc) · 1.32 KB

Component: RPC

ZKEVM RPC:

The ZKEVM RPC relays transactions to the Trusted sequencer.

Hard dependencies:

Running:

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 Port
    • 9091:9091: Needed if Prometheus metrics are enabled
  • environment: Env variables that supersede the config file
    • ZKEVM_NODE_STATE_DB_HOST: Name of StateDB Database Host
    • ZKEVM_NODE_POOL_HOST: Name of PoolDB Database Host
    • ZKEVM_NODE_RPC_DB_HOST: Name of RPCDB Database Host
  • volumes:
    • your config.toml file: /app/config.toml
    • your genesis file: /app/genesis.json