Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/quietgarden/elm-web3 is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 1.0.0 found (5 same-name repos checked); no cached copy. Use another version.
Type-safe contract read calls (eth_call).
Build a read call, encode it for the JS port, decode the response. The code generator creates typed wrappers around these primitives.
-- Generated code uses this under the hood:
balanceOf : Address -> ReadCall String
balanceOf addr =
readCall
{ contract = tokenAddress
, method = "balanceOf"
, args = [ Encode.address addr ]
, decoder = Decode.string
}Create a read call. The id is echoed back in the response so you can
match responses to requests when multiple calls are in flight.
Set the block number for the call.
Get the response decoder for a read call.
A read-only contract call with a typed return value.