mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 04:22:48 +03:00
Merge pull request #1092 from urbit/eth-rpc-blockbynumber
Support eth_getBlockByNumber Ethereum RPC call
This commit is contained in:
commit
b3e4604255
@ -7894,6 +7894,7 @@
|
|||||||
adr=(list address)
|
adr=(list address)
|
||||||
top=(list ?(@ux (list @ux)))
|
top=(list ?(@ux (list @ux)))
|
||||||
==
|
==
|
||||||
|
[%eth-get-block-by-number bon=@ud txs=?]
|
||||||
[%eth-get-filter-logs fid=@ud]
|
[%eth-get-filter-logs fid=@ud]
|
||||||
$: %eth-get-logs
|
$: %eth-get-logs
|
||||||
fro=(unit block)
|
fro=(unit block)
|
||||||
@ -8050,6 +8051,12 @@
|
|||||||
:+ ~ 'topics'
|
:+ ~ 'topics'
|
||||||
(topics-to-json top.req)
|
(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-get-filter-logs
|
||||||
['eth_getFilterLogs' (tape (num-to-hex fid.req)) ~]
|
['eth_getFilterLogs' (tape (num-to-hex fid.req)) ~]
|
||||||
|
Loading…
Reference in New Issue
Block a user