web3-0.9.1.0: Web3 API for Haskell.

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

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