eth_getBalance RPC method


  1. Address - The address to check for balance.
  2. Quantity or Tag - (optional) Integer block number, or the string 'latest', 'earliest' or 'pending', see the default block parameter.


  1. Result - Integer value of current balance in wei encoded as a hexadecimal.

Code Examples:

require 'ethereum.rb'
client ='')
balance = client.get_balance('0x8D97689C9818892B700e27F316cc3E41e17fBeb9')
puts balance
Ready to try QuickNode? Start your 7-day free trial