Skip to content

v0.3.1

Compare
Choose a tag to compare
@DenisCarriere DenisCarriere released this 09 Jun 20:51
· 39 commits to main since this release
  • add GET / landing page EOS EVM Miner details
  • add GET /v1/chain/get_info applied to all GET requests (except /)
  • Added Prometheus metrics http://localhost:9102/
  • add HOSTNAME .env or CLI argument --hostname

Help

$ 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")
  -h, --help                   display help for command

Prometheus Metrics

# HELP eth_gas_price_requests The number of eth_gasPrice errors from request received
# TYPE eth_gas_price_requests counter
eth_gas_price_requests 3

# HELP eth_gas_price_success The number of eth_gasPrice successful request received
# TYPE eth_gas_price_success counter
eth_gas_price_success 3

# HELP eth_send_raw_transaction_requests The number of eth_sendRawTransaction errors from request received
# TYPE eth_send_raw_transaction_requests counter
eth_send_raw_transaction_requests 2

# HELP eth_send_raw_transaction_success The number of eth_sendRawTransaction successful request received
# TYPE eth_send_raw_transaction_success counter
eth_send_raw_transaction_success 0

Environment Variables

.env

# miner (required)
PRIVATE_KEY=PVT_K1_...
MINER_ACCOUNT=miner.enf

# miner (optional)
MINER_PERMISSION=active

# Nodeos (optional)
RPC_ENDPOINT=https://eos.greymass.com
CHAIN_ID=aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906

# JSON RPC (optional)
PORT=50305
HOSTNAME=127.0.0.1
LOCK_GAS_PRICE=0x22ecb25c00

# Prometheus Metrics
PROMETHEUS_PORT=9102
METRICS_DISABLED=false

# CLI (optional)
VERBOSE=true