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 2.0.1 found (5 same-name repos checked); no cached copy. Use another version.
Typed decoders for on-chain read queries: transaction count (nonce), storage slot reads, contract bytecode, and transaction lookup by hash.
Each query carries a correlation id that is echoed back so responses can
be matched when multiple queries are in flight.
-- Send via your port:
web3Cmd (Web3.Query.encode (Web3.Query.getTxCount address "nonce-1"))
-- Receive via your port:
case D.decodeValue Web3.Query.decoder incoming of
Ok (Web3.Query.GotTxCount id nonce) -> ...
Ok (Web3.Query.GotStorageAt id val) -> ...
Ok (Web3.Query.GotCode id bytecode) -> ...
Ok (Web3.Query.GotTransaction id info) -> ...
Ok (Web3.Query.TransactionNotFound id) -> ...
Err _ -> -- not a query responseMessages from the JS query port.
Information about a transaction fetched by hash.
Build a transaction count (nonce) query for address, tagged with id.
Build a storage slot query. slot is the integer slot index (converted to hex).
Request a transaction by hash. The second argument is a request ID.
Commands to send to the JS query port.