ethio: add +get-next-nonce

This commit is contained in:
Fang 2019-12-11 16:28:17 +01:00
parent a16fbd20ae
commit 965529525b
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -222,4 +222,14 @@
==
%- pure:m
(parse-event-logs:rpc:ethereum json)
::
++ get-next-nonce
|= [url=@ta =address]
=/ m (strand:strandio ,@ud)
^- form:m
;< =json bind:m
%^ request-rpc url `'nonce'
[%eth-get-transaction-count address [%label %latest]]
%- pure:m
(parse-eth-get-transaction-count:rpc:ethereum json)
--