class Eth::Client

def chain_id

Returns:
  • (Integer) - the chain ID.
def chain_id
  @chain_id ||= eth_chain_id["result"].to_i 16
end