web3-0.9.0.0: Web3 API for Haskell.

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

Network.Polkadot.Api.Author

Description

Polkadot RPC methods with author prefix.

Synopsis

Documentation

hasKey Source #

Arguments

:: JsonRpc m 
=> HexString

Public key

-> Text

Key type

-> m Bool 

Returns true if the keystore has private keys for the given public key and key type.

hasSessionKeys Source #

Arguments

:: JsonRpc m 
=> HexString

Session keys

-> m Bool 

Returns true if the keystore has private keys for the given session public keys.

insertKey Source #

Arguments

:: JsonRpc m 
=> Text

Key type

-> Text

Key secret URI

-> HexString

Public key

-> m HexString 

Insert a key into the keystore.

pendingExtrinsics :: JsonRpc m => m [HexString] Source #

Returns all pending extrinsics, potentially grouped by sender.

removeExtrinsic Source #

Arguments

:: JsonRpc m 
=> [HexString]

Extrinsic or hash

-> m HexString 

Remove given extrinsic from the pool and temporarily ban it to prevent reimporting.

rotateKeys :: JsonRpc m => m HexString Source #

Generate new session keys and returns the corresponding public keys.

submitExtrinsic Source #

Arguments

:: JsonRpc m 
=> HexString

Extrinsic

-> m HexString

Hash

Submit a fully formatted extrinsic for block inclusion.