Module

Network.Ethereum.Web3.Api

Package
purescript-web3
Repository
f-o-a-m/purescript-web3

#web3_clientVersion Source

web3_clientVersion :: forall e. Partial => Web3 e String

Returns current node version string.

#web3_sha3 Source

web3_sha3 :: forall e. Partial => HexString -> Web3 e HexString

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

#net_version Source

net_version :: forall e. Web3 e String

Get the network id that the node is listening to.

#net_listening Source

net_listening :: forall e. Web3 e Boolean

Returns `true`` if client is actively listening for network connections

#net_getPeerCount Source

net_getPeerCount :: forall e. Web3 e BigNumber

Get the number of currently connected peers.

#eth_protocolVersion Source

eth_protocolVersion :: forall e. Web3 e String

Returns the current ethereum protocol version

#eth_getSyncing Source

eth_getSyncing :: forall e. Web3 e (FalseOrObject SyncStatus)

Get the sync status of the node.

#eth_coinbase Source

eth_coinbase :: forall e. Web3 e Address

Returns the client coinbase address

#eth_mining Source

eth_mining :: forall e. Web3 e Boolean

Returns true if client is actively mining new blocks

#eth_hashrate Source

eth_hashrate :: forall e. Web3 e BigNumber

Returns the number of hashes per second that the node is mining with

#eth_gasPrice Source

eth_gasPrice :: forall e. Web3 e BigNumber

Returns the current price per gas in wei

#eth_blockNumber Source

eth_blockNumber :: forall e. Web3 e BlockNumber

Returns the number of most recent block

#eth_getBalance Source

eth_getBalance :: forall e. Address -> ChainCursor -> Web3 e BigNumber

Returns the balance of the account of given address.

#eth_getStorageAt Source

eth_getStorageAt :: forall e. Address -> BigNumber -> ChainCursor -> Web3 e HexString

Returns the value from a storage position at a given address

#eth_getTransactionCount Source

eth_getTransactionCount :: forall e. Address -> ChainCursor -> Web3 e BigNumber

Returns the number of transactions sent from an address

#eth_getBlockTransactionCountByHash Source

eth_getBlockTransactionCountByHash :: forall e. HexString -> Web3 e BigNumber

Returns the number of transactions in a block from a block matching the given block hash

#eth_getBlockTransactionCountByNumber Source

eth_getBlockTransactionCountByNumber :: forall e. ChainCursor -> Web3 e BigNumber

Returns the number of transactions in a block matching the given block number

#eth_getUncleCountByBlockHash Source

eth_getUncleCountByBlockHash :: forall e. HexString -> Web3 e BigNumber

Returns the number of uncles in a block from a block matching the given block hash

#eth_getUncleCountByBlockNumber Source

eth_getUncleCountByBlockNumber :: forall e. ChainCursor -> Web3 e BigNumber

Returns the number of uncles in a block from a block matching the given block number

#eth_getCode Source

eth_getCode :: forall e. Address -> ChainCursor -> Web3 e HexString

Returns code at a given address

#eth_sendRawTransaction Source

eth_sendRawTransaction :: forall e. HexString -> Web3 e HexString

Creates new message call transaction or a contract creation for signed transactions

#eth_estimateGas Source

eth_estimateGas :: forall e. TransactionOptions MinorUnit -> Web3 e BigNumber

Makes a call or transaction, which won't be added to the blockchain and returns the used gas, which can be used for estimating the used gas.

#eth_getTransactionByBlockHashAndIndex Source

eth_getTransactionByBlockHashAndIndex :: forall e. HexString -> BigNumber -> Web3 e Transaction

Returns information about a transaction by block hash and transaction index position.

#eth_getTransactionByBlockNumberAndIndex Source

eth_getTransactionByBlockNumberAndIndex :: forall e. ChainCursor -> BigNumber -> Web3 e Transaction

Returns information about a transaction by block number and transaction index position.

#eth_getTransactionReceipt Source

eth_getTransactionReceipt :: forall e. HexString -> Web3 e TransactionReceipt

Returns the receipt of a transaction by transaction hash.

#eth_getUncleByBlockHashAndIndex Source

eth_getUncleByBlockHashAndIndex :: forall e. HexString -> BigNumber -> Web3 e Block

Returns information about a uncle of a block by hash and uncle index position.

#eth_getUncleByBlockNumberAndIndex Source

eth_getUncleByBlockNumberAndIndex :: forall e. ChainCursor -> BigNumber -> Web3 e Block

Returns information about a uncle of a block by number and uncle index position.

#eth_getCompilers Source

eth_getCompilers :: forall e. Partial => Web3 e (Array String)

Returns a list of available compilers in the client.

#eth_getBlockByNumber Source

eth_getBlockByNumber :: forall e. ChainCursor -> Web3 e Block

Returns information about a block by number.

#eth_getBlockByHash Source

eth_getBlockByHash :: forall e. HexString -> Web3 e Block

Returns information about a block by hash.

#eth_getTransaction Source

eth_getTransaction :: forall e. HexString -> Web3 e Transaction

Returns information about a transaction by hash.

#eth_call Source

eth_call :: forall e. TransactionOptions NoPay -> ChainCursor -> Web3 e HexString

Call a function on a particular block's state root.

#eth_sendTransaction Source

eth_sendTransaction :: forall e. TransactionOptions MinorUnit -> Web3 e HexString

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

#eth_getAccounts Source

eth_getAccounts :: forall e. Web3 e (Array Address)

Get all account addresses registered at the Provider

#eth_newFilter Source

eth_newFilter :: forall e a. Filter a -> Web3 e FilterId

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

#eth_newBlockFilter Source

eth_newBlockFilter :: forall e. Web3 e FilterId

Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges.

#eth_getFilterChanges Source

eth_getFilterChanges :: forall e. FilterId -> Web3 e (Array Change)

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

#eth_getFilterLogs Source

eth_getFilterLogs :: forall e. FilterId -> Web3 e (Array Change)

Returns an array of all logs matching filter with given id.

#eth_getLogs Source

eth_getLogs :: forall e a. Filter a -> Web3 e (Array Change)

Returns an array of all logs matching a given filter object

#eth_uninstallFilter Source

eth_uninstallFilter :: forall e. FilterId -> Web3 e Boolean

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

#personal_sign Source

personal_sign :: forall e. HexString -> Address -> Maybe String -> Web3 e HexString

Sign a message with the given address, returning the signature.

#personal_ecRecover Source

personal_ecRecover :: forall e. HexString -> HexString -> Web3 e Address

Recover the address that signed the message from (1) the message and (2) the signature