q9f / eth.rb

a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.
https://q9f.github.io/eth.rb
Apache License 2.0
196 stars 85 forks source link

eth/client: fix get balance for block number #265

Closed dapi closed 1 month ago

dapi commented 4 months ago

Add availability to request eth_get_balance for the block number

wafcio commented 4 months ago

I have prepared this fix: https://github.com/q9f/eth.rb/pull/268. It isn't as easy as yours, but my approach allows us to use eth_call. We should probably support a custom block number for more calls than eth_get_balance and eth_call.

q9f commented 1 month ago

Thanks, I opted for #268