web3-polkadot-1.0.1.0: Polkadot support for Haskell Web3 library.
CopyrightAleksandr Krupenkin 2016-2024
LicenseApache-2.0
Maintainermail@akru.me
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Polkadot.Rpc.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.