| Copyright | Alexander Krupenkin 2016 |
|---|---|
| License | BSD3 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Ethereum.Web3.Provider
Description
Web3 service provider.
- newtype Web3 a = Web3 {}
- data Web3Error
- = JsonRpcFail !String
- | ParserFail !String
- | UserFail !String
- data Provider = HttpProvider ServerUri
- runWeb3With :: MonadIO m => Manager -> Provider -> Web3 a -> m (Either Web3Error a)
- runWeb3' :: MonadIO m => Provider -> Web3 a -> m (Either Web3Error a)
- runWeb3 :: MonadIO m => Web3 a -> m (Either Web3Error a)
- forkWeb3 :: Web3 a -> Web3 (Async a)
Documentation
Any communication with Ethereum node wrapped with Web3 monad
Some peace of error response
Constructors
| JsonRpcFail !String | JSON-RPC communication error |
| ParserFail !String | Error in parser state |
| UserFail !String | Common head for user errors |
Web3 Provider
Constructors
| HttpProvider ServerUri |