web3-0.9.1.0: Web3 API for Haskell.

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

Network.Polkadot.Api.State

Description

Polkadot RPC methods with state prefix.

Synopsis

Documentation

call Source #

Arguments

:: JsonRpc m 
=> Text

Call method

-> HexString

Call data

-> Maybe HexString

Block hash or nothing for head

-> m HexString 

Perform a call to a builtin on the chain.

getChildKeys Source #

Arguments

:: JsonRpc m 
=> HexString

Child storage key

-> HexString

Child definition

-> Int

Child type

-> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m [HexString] 

Retrieves the keys with prefix of a specific child storage.

getChildStorage Source #

Arguments

:: JsonRpc m 
=> HexString

Child storage key

-> HexString

Child definition

-> Int

Child type

-> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m HexString 

Retrieves the child storage for a key.

getChildStorageHash Source #

Arguments

:: JsonRpc m 
=> HexString

Child storage key

-> HexString

Child definition

-> Int

Child type

-> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m HexString 

Retrieves the child storage hash.

getChildStorageSize Source #

Arguments

:: JsonRpc m 
=> HexString

Child storage key

-> HexString

Child definition

-> Int

Child type

-> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m Int 

Retrieves the child storage size.

getKeys Source #

Arguments

:: JsonRpc m 
=> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m [HexString] 

Retrieves the keys with a certain prefix.

getMetadata :: JsonRpc m => m Metadata Source #

Returns the runtime metadata.

getReadProof Source #

Arguments

:: JsonRpc m 
=> [HexString]

Keys

-> Maybe HexString

Block hash or nothing for head

-> m ReadProof 

Returns proof of storage entries at a specific block state.

getRuntimeVersion Source #

Arguments

:: JsonRpc m 
=> Maybe HexString

Block hash or nothing for head

-> m RuntimeVersion 

Get runtime version.

getStorage Source #

Arguments

:: JsonRpc m 
=> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m HexString 

Retrieves the storage for a key.

getStorageHash Source #

Arguments

:: JsonRpc m 
=> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m HexString 

Retrieves the storage hash.

getStorageSize Source #

Arguments

:: JsonRpc m 
=> HexString

Key

-> Maybe HexString

Block hash or nothing for head

-> m Int 

Retrieves the storage size.

queryStorage Source #

Arguments

:: JsonRpc m 
=> [HexString]

Storage keys

-> HexString

From block hash

-> Maybe HexString

To block hash

-> m [StorageChangeSet] 

Query historical storage entries (by key) starting from a start block.

queryStorageAt Source #

Arguments

:: JsonRpc m 
=> [HexString]

Storage keys

-> Maybe HexString

Block hash or nothing for head

-> m [StorageChangeSet] 

Query storage entries (by key) starting at block hash given as the second parameter.