mirror of
https://github.com/urbit/shrub.git
synced 2024-12-29 23:23:52 +03:00
16 lines
365 B
Plaintext
16 lines
365 B
Plaintext
:: eth/read-contract: query ethereum for contract data
|
|
::
|
|
:: produces hex string result, for use with +decode-results:rpc:ethereum
|
|
::
|
|
/+ ethereum, ethio, strandio
|
|
=, ethereum-types
|
|
=, 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))
|