Contents

eth_chainId RPC method

Parameters:

  1. None

Returns:

  1. Quantity - EIP155 Chain ID.

Code Examples:

require 'ethereum.rb'
client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/')
network = client.net_version
puts network["result"]
Ready to try QuickNode? Start your 7-day free trial