urbit/pkg/arvo/ted/eth/read-contract.hoon
2019-11-22 20:04:01 +01:00

16 lines
360 B
Plaintext

:: eth/read-contract: query ethereum for contract data
::
:: produces hex string result, for use with +decode-results:rpc:ethereum
::
/+ ethio, strandio
=, ethereum-types
=, able:jael
::
|= 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))