Module

Network.Ethereum.Web3.Provider

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

#Provider Source

data Provider :: Type

Represents a connection to an ethereum client

#IsAsyncProvider Source

class IsAsyncProvider p  where

Members

Instances

#Metamask Source

data Metamask

Used only in the browser

Instances

#metamaskProvider Source

#httpProvider Source

httpProvider :: forall e. String -> Eff e Provider

Connect to an ethereum client at a given address, eg "http://localhost:8545"

#runWeb3 Source

runWeb3 :: forall a e p. Proxy p -> Web3 p e a -> Aff (eth :: ETH | e) a

Run an asynchronous ETH action

#forkWeb3 Source

forkWeb3 :: forall a e p. Proxy p -> Web3 p e a -> Aff (eth :: ETH | e) (Fiber (eth :: ETH | e) a)

Fork an asynchronous ETH action

#forkWeb3' Source

forkWeb3' :: forall a e p. Proxy p -> Web3 p e a -> Web3 p e (Fiber (eth :: ETH | e) a)

Fork an asynchronous ETH action inside Web3 monad