Copyright | Alexander Krupenkin 2016-2018 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
An Ethereum node offers a RPC interface. This interface gives Ðapp’s access to the Ethereum blockchain and functionality that the node provides, such as compiling smart contract code. It uses a subset of the JSON-RPC 2.0 specification (no support for notifications or named parameters) as serialisation protocol and is available over HTTP and IPC (unix domain sockets on linux/OSX and named pipe’s on Windows).
Web3 Haskell library currently use JSON-RPC over HTTP to access node functionality.
Synopsis
- data Web3 a
- runWeb3 :: MonadIO m => Web3 a -> m (Either Web3Error a)
- module Network.Ethereum.Account
- data EventAction
- event :: DecodeEvent i ni e => Filter e -> (e -> ReaderT Change Web3 EventAction) -> Web3 (Async ())
- module Data.Solidity.Prim
- module Network.Ethereum.Unit
Base monad for any Ethereum node communication
Any communication with Ethereum node wrapped with Web3
monad
Instances
Monad Web3 Source # | |
Functor Web3 Source # | |
Applicative Web3 Source # | |
MonadIO Web3 Source # | |
Defined in Network.Ethereum.Api.Provider | |
MonadThrow Web3 Source # | |
Defined in Network.Ethereum.Api.Provider | |
JsonRpc Web3 Source # | |
Defined in Network.Ethereum.Api.Provider remote :: Remote Web3 a => MethodName -> a Source # | |
MonadState JsonRpcClient Web3 Source # | |
Defined in Network.Ethereum.Api.Provider get :: Web3 JsonRpcClient # put :: JsonRpcClient -> Web3 () # state :: (JsonRpcClient -> (a, JsonRpcClient)) -> Web3 a # |
Basic transaction sending
module Network.Ethereum.Account
Basic event listening
data EventAction Source #
Event callback control response
ContinueEvent | Continue to listen events |
TerminateEvent | Terminate event listener |
Instances
Eq EventAction Source # | |
Defined in Network.Ethereum.Contract.Event.Common (==) :: EventAction -> EventAction -> Bool # (/=) :: EventAction -> EventAction -> Bool # | |
Show EventAction Source # | |
Defined in Network.Ethereum.Contract.Event.Common showsPrec :: Int -> EventAction -> ShowS # show :: EventAction -> String # showList :: [EventAction] -> ShowS # |
event :: DecodeEvent i ni e => Filter e -> (e -> ReaderT Change Web3 EventAction) -> Web3 (Async ()) Source #
Run 'event\'' one block at a time.
Primitive data types
module Data.Solidity.Prim
Metric unit system
module Network.Ethereum.Unit