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 :: Web3 Text
- web3_sha3 :: Text -> Web3 Text
- eth_getBalance :: Address -> CallMode -> Web3 Text
- eth_newFilter :: Filter -> Web3 FilterId
- eth_getFilterChanges :: FilterId -> Web3 [Change]
- eth_uninstallFilter :: FilterId -> Web3 Bool
- eth_call :: Call -> CallMode -> Web3 Text
- eth_sendTransaction :: Call -> Web3 Text
- eth_accounts :: Web3 [Address]
Documentation
web3_clientVersion :: Web3 Text Source #
Returns current node version string.
web3_sha3 :: Text -> Web3 Text Source #
Returns Keccak-256 (not the standardized SHA3-256) of the given data.
eth_getBalance :: Address -> CallMode -> Web3 Text Source #
Returns the balance of the account of given address.
eth_newFilter :: Filter -> Web3 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 :: FilterId -> Web3 [Change] Source #
Polling method for a filter, which returns an array of logs which occurred since last poll.
eth_uninstallFilter :: FilterId -> Web3 Bool Source #
Uninstalls a filter with given id. Should always be called when watch is no longer needed.
eth_call :: Call -> CallMode -> Web3 Text Source #
Executes a new message call immediately without creating a transaction on the block chain.
eth_sendTransaction :: Call -> Web3 Text Source #
Creates new message call transaction or a contract creation, if the data field contains code.
eth_accounts :: Web3 [Address] Source #
Returns a list of addresses owned by client.