Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Ethereum node JSON-RPC API methods.
- web3_clientVersion :: Provider a => Web3 a Text
- web3_sha3 :: Provider a => Text -> Web3 a Text
- eth_getBalance :: Provider a => Address -> CallMode -> Web3 a Text
- eth_newFilter :: Provider a => Filter -> Web3 a FilterId
- eth_getFilterChanges :: Provider a => FilterId -> Web3 a [Change]
- eth_uninstallFilter :: Provider a => FilterId -> Web3 a Bool
- eth_call :: Provider a => Call -> CallMode -> Web3 a Text
- eth_sendTransaction :: Provider a => Call -> Web3 a Text
- eth_accounts :: Provider a => Web3 a [Address]
- eth_newBlockFilter :: Provider a => Web3 a Text
- eth_getBlockFilterChanges :: Provider a => Text -> Web3 a [Text]
- eth_getBlockByHash :: Provider a => Text -> Web3 a Block
Documentation
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.