Support eth_getBlockByNumber Ethereum RPC call
adr=(list address)
top=(list ?(@ux (list @ux)))
==
+ [%eth-get-block-by-number bon=@ud txs=?]
[%eth-get-filter-logs fid=@ud]
$: %eth-get-logs
fro=(unit block)
:+ ~ 'topics'
(topics-to-json top.req)
==
+ ::
+ %eth-get-block-by-number
+ :- 'eth_getBlockByNumber'
+ :~ (tape (num-to-hex bon.req))
+ b+txs.req
+ ==
::
%eth-get-filter-logs
['eth_getFilterLogs' (tape (num-to-hex fid.req)) ~]
