New π JSON RPC methods (Request to EOS RPC)
New π JSON RPC methods (Proxy to EVM RPC)
JSON RPC methods (Request to EOS RPC)
New π.env
& CLI updates
# EOS RPC (optional)
RPC_ENDPOINT=https://eos.api.eosnation.io
CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
# EVM RPC (optional)
EVM_RPC_ENDPOINT=https://api.evm.eosnetwork.com
CLI
eos-evm-miner start --help
Usage: @enf/eos-evm-miner start [options]
Start JSON RPC Server
Options:
--private-key <string> Miner private key (ex: "PVT_K1_...")
--account <string> Miner account name (ex: "miner.evm")
--permission <string> Miner permission (default: "active")
-p --port <int> JSON RPC listens on port number, listen for
incoming Ethereum transactions. (default:
"50305")
--hostname <string> JSON RPC listens on hostname, listen for
incoming Ethereum transactions (ex: "127.0.0.1)"
--metrics-listen-port <int> The process will listen on this port for
Prometheus metrics requests (default: "9102")
--metrics-disabled If set, will not send metrics to Prometheus
--verbose Enable verbose logging
--lock-gas-price Lock gas price as hex value (ex: "0x22ecb25c00")
--lock-chain-id Lock chain ID as hex value (ex: "0x4571")
--lock-genesis-time Lock genesis time (ex: "2023-04-05T02:18:09")
--rpc-endpoint EOS RPC endpoint (ex:
"https://eos.api.eosnation.io")
--rpc-evm-endpoint EOS RPC endpoint (ex:
"https://api.evm.eosnetwork.com")
-h, --help display help for command
.env
# miner (required)
PRIVATE_KEY=PVT_K1_...
MINER_ACCOUNT=miner.enf
# miner (optional)
MINER_PERMISSION=active
# RPC EOS (optional)
RPC_ENDPOINT=https://eos.api.eosnation.io
CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906
# RPC EVM (optional)
RPC_EVM_ENDPOINT=https://api.evm.eosnetwork.com
# JSON RPC (optional)
PORT=50305
HOSTNAME=127.0.0.1
LOCK_GAS_PRICE=0x22ecb25c00
LOCK_CHAIN_ID=0x4571
# Prometheus Metrics
PROMETHEUS_PORT=9102
METRICS_DISABLED=false
# CLI (optional)
VERBOSE=true