mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-24 15:34:10 +03:00
ethereum: add block to %eth-get-balance
This commit is contained in:
parent
5904c6e2c8
commit
85debb1ce9
@ -483,7 +483,7 @@
|
||||
[%eth-get-filter-changes fid=@ud]
|
||||
[%eth-get-transaction-by-hash txh=@ux]
|
||||
[%eth-get-transaction-count adr=address =block]
|
||||
[%eth-get-balance adr=address]
|
||||
[%eth-get-balance adr=address =block]
|
||||
[%eth-get-transaction-receipt txh=@ux]
|
||||
[%eth-send-raw-transaction dat=@ux]
|
||||
==
|
||||
@ -720,7 +720,10 @@
|
||||
==
|
||||
::
|
||||
%eth-get-balance
|
||||
['eth_getBalance' (tape (address-to-hex adr.req)) ~]
|
||||
:- 'eth_getBalance'
|
||||
:~ (tape (address-to-hex adr.req))
|
||||
(block-to-json block.req)
|
||||
==
|
||||
::
|
||||
%eth-get-transaction-by-hash
|
||||
['eth_getTransactionByHash' (tape (transaction-to-hex txh.req)) ~]
|
||||
|
@ -283,7 +283,7 @@
|
||||
^- form:m
|
||||
;< =json bind:m
|
||||
%^ request-rpc url `'balance'
|
||||
[%eth-get-balance address]
|
||||
[%eth-get-balance address [%label %latest]]
|
||||
%- pure:m
|
||||
(parse-eth-get-balance:rpc:ethereum json)
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user