Ethereum.Api
- Package
- purescript-ethereum-client
- Repository
- Unisay/purescript-ethereum-client
#web3ClientVersion Source
web3ClientVersion :: Eth StringCurrent client version
#keccak256 Source
keccak256 :: ByteString -> Eth Keccak256Returns Keccak-256 (not the standardized SHA3-256) of the given data
#netVersion Source
netVersion :: Eth NetworkCurrent network
#netListening Source
netListening :: Eth BooleanIf client is actively listening for network connections
#netPeerCount Source
netPeerCount :: Eth QuantityNumber of peers currently connected to the client
#ethProtocolVersion Source
ethProtocolVersion :: Eth StringCurrent ethereum protocol version
#ethSyncing Source
ethSyncing :: Eth (Maybe SyncStatus)Syncrhronization status
#ethCoinbase Source
ethCoinbase :: Eth AddressClient coinbase address
#ethHashrate Source
ethHashrate :: Eth QuantityNumber of hashes per second that the node is mining with
#ethGasPrice Source
ethGasPrice :: Eth WeiCurrent price per gas in WEI
#ethBlockNumber Source
ethBlockNumber :: Eth BlockNumberNumber of most recent block
#ethGetBalance Source
ethGetBalance :: Address -> DefaultBlock -> Eth WeiBalance of the account of given address
#ethGetStorageAt Source
ethGetStorageAt :: Address -> Int -> DefaultBlock -> Eth BytesValue from a storage position at a given address
#ethGetTransactionCount Source
ethGetTransactionCount :: Address -> DefaultBlock -> Eth (Maybe Quantity)Number of transactions sent from an address
#ethGetBlockTransactionCountByHash Source
ethGetBlockTransactionCountByHash :: BlockHash -> Eth (Maybe Quantity)Number of transactions in a block from a block matching the given block hash
#ethGetBlockTransactionCountByNumber Source
ethGetBlockTransactionCountByNumber :: DefaultBlock -> Eth (Maybe Quantity)Number of transactions in a block from a block matching the given block number
#ethGetUncleCountByBlockHash Source
ethGetUncleCountByBlockHash :: BlockHash -> Eth (Maybe Quantity)Number of uncles in a block from a block matching the given block hash
#ethGetUncleCountByBlockNumber Source
ethGetUncleCountByBlockNumber :: DefaultBlock -> Eth (Maybe Quantity)Number of uncles in a block from a block matching the given block number
#ethGetCode Source
ethGetCode :: Address -> DefaultBlock -> Eth CodeCode at a given address
Re-exports from Ethereum.Type
#SyncStatus Source
newtype SyncStatusConstructors
SyncStatus { currentBlock :: BlockNumber, highestBlock :: BlockNumber, startingBlock :: BlockNumber }
Instances
#BlockNumber Source
#mkBlockNumber Source
mkBlockNumber :: BigInt -> Valid BlockNumber- Modules
- Ethereum.
Api - Ethereum.
Text - Ethereum.
Type