From bcdd6e60d62b635bea3ed09b83aa7166ae0143b2 Mon Sep 17 00:00:00 2001 From: Fang Date: Mon, 4 Mar 2019 22:29:47 +0100 Subject: [PATCH] Support eth_getBlockByNumber Ethereum RPC call --- sys/zuse.hoon | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/zuse.hoon b/sys/zuse.hoon index 45deef347..97d147769 100644 --- a/sys/zuse.hoon +++ b/sys/zuse.hoon @@ -7894,6 +7894,7 @@ 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) @@ -8050,6 +8051,12 @@ :+ ~ '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)) ~]