web3-0.9.1.0: Web3 API for Haskell.

CopyrightAlexander Krupenkin 2016
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Network.Polkadot.Api.Contracts

Description

Polkadot RPC methods with contracts prefix.

Synopsis

Documentation

call Source #

Arguments

:: JsonRpc m 
=> ContractCall

Contract call

-> Maybe HexString

Block hash or nothing for head

-> m ContractExecResult 

Executes a call to a contract.

getStorage Source #

Arguments

:: JsonRpc m 
=> Text

AccountId

-> HexString

Storage key

-> Maybe HexString

Block hash or nothing for head

-> m (Maybe HexString) 

Returns the value under a specified storage key in a contract

rentProjection Source #

Arguments

:: JsonRpc m 
=> Text

AccountId

-> Maybe HexString

Block hash or nothing for head

-> m (Maybe Int) 

Returns the projected time a given contract will be able to sustain paying its rent.