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

Network.Polkadot.Query

Description

Query storage for internal data.

Synopsis

Documentation

storage :: JsonRpc m => m (Either String Storage) Source #

Loads metadata from runtime and create storage type.

query Source #

Arguments

:: (JsonRpc m, Decode a) 
=> Text

Module name.

-> Text

Storage method name.

-> [Argument]

Arguments (for mappings).

-> m (Either String a)

Decoded storage item.

Query data from blockchain via getStorage RPC call.

query' Source #

Arguments

:: (JsonRpc m, Decode a) 
=> Maybe HexString

Block hash for query (Nothing for best block).

-> Text

Module name.

-> Text

Storage method name.

-> [Argument]

Arguments (for mappings).

-> m (Either String a)

Decoded storage item.

Similar to query but get block hash for query as an argument.