web3-ethereum-1.0.0.0: Ethereum support for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2021
LicenseApache-2.0
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