web3-0.5.5.0: Ethereum API for Haskell

CopyrightAlexander Krupenkin 2016
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Network.Ethereum.Web3.Api

Description

Ethereum node JSON-RPC API methods.

Synopsis

Documentation

web3_clientVersion :: Provider a => Web3 a Text Source #

Returns current node version string.

web3_sha3 :: Provider a => Text -> Web3 a Text Source #

Returns Keccak-256 (not the standardized SHA3-256) of the given data.

eth_getBalance :: Provider a => Address -> CallMode -> Web3 a Text Source #

Returns the balance of the account of given address.

eth_newFilter :: Provider a => Filter -> Web3 a FilterId Source #

Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call getFilterChanges.

eth_getFilterChanges :: Provider a => FilterId -> Web3 a [Change] Source #

Polling method for a filter, which returns an array of logs which occurred since last poll.

eth_uninstallFilter :: Provider a => FilterId -> Web3 a Bool Source #

Uninstalls a filter with given id. Should always be called when watch is no longer needed.

eth_call :: Provider a => Call -> CallMode -> Web3 a Text Source #

Executes a new message call immediately without creating a transaction on the block chain.

eth_sendTransaction :: Provider a => Call -> Web3 a Text Source #

Creates new message call transaction or a contract creation, if the data field contains code.

eth_accounts :: Provider a => Web3 a [Address] Source #

Returns a list of addresses owned by client.

eth_getBlockFilterChanges :: Provider a => Text -> Web3 a [Text] Source #

Polling method for a block filter, which returns an array of block hashes occurred since last poll.

eth_getBlockByHash :: Provider a => Text -> Web3 a Block Source #

Returns information about a block by hash.