urbit/pkg/arvo/ted/eth/read-contract.hoon

16 lines
365 B
Plaintext
Raw Normal View History

2019-11-22 22:04:01 +03:00
:: eth/read-contract: query ethereum for contract data
::
:: produces hex string result, for use with +decode-results:rpc:ethereum
::
/+ ethereum, ethio, strandio
2019-11-22 22:04:01 +03:00
=, ethereum-types
2020-12-08 03:47:06 +03:00
=, jael
2019-11-22 22:04:01 +03:00
::
|= args=vase
=/ m (strand:strandio ,vase)
^- form:m
;< res=@t bind:m
%- read-contract:ethio
!<([@t proto-read-request:rpc:ethereum] args)
(pure:m !>(res))