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

Description

Polkadot RPC methods with chain prefix.

Synopsis

Documentation

getBlock Source #

Arguments

:: JsonRpc m 
=> Maybe HexString

Block hash

-> m (Maybe SignedBlock) 

Get header and body of a relay chain block.

getBlockHash Source #

Arguments

:: JsonRpc m 
=> Maybe Int

Block number

-> m (Maybe HexString) 

Get the block hash for a specific block.

getFinalizedHead :: JsonRpc m => m HexString Source #

Get hash of the last finalized block in the canon chain.

getHeader Source #

Arguments

:: JsonRpc m 
=> Maybe HexString

Block hash

-> m (Maybe Header) 

Retrieves the header for a specific block.