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.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 HexString 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.