web3-0.9.0.0: Web3 API for Haskell.

CopyrightAlexander Krupenkin 2018
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Network.Ethereum.Contract

Description

Smart contract type class and utils. A contract in the sense of Solidity is a collection of code (its functions) and data (its state) that resides at a specific address on the Ethereum blockchain.

Synopsis

Documentation

class Contract a where Source #

Contract description type clase

Methods

abi :: Proxy a -> Text Source #

bytecode :: Proxy a -> HexString Source #

Contract bytecode as hex string

new Source #

Arguments

:: (Account p t, JsonRpc m, Method a, Monad (t m)) 
=> a

Contract constructor

-> t m (Maybe Address)

Address of deployed contract when transaction success

Create new smart contract on blockchain