| Copyright | Alexander Krupenkin 2016 |
|---|---|
| License | BSD3 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Polkadot.Api.State
Description
Polkadot RPC methods with state prefix.
Synopsis
- call :: JsonRpc m => Text -> HexString -> Maybe HexString -> m HexString
- getChildKeys :: JsonRpc m => HexString -> HexString -> Int -> HexString -> Maybe HexString -> m [HexString]
- getChildStorage :: JsonRpc m => HexString -> HexString -> Int -> HexString -> Maybe HexString -> m HexString
- getChildStorageHash :: JsonRpc m => HexString -> HexString -> Int -> HexString -> Maybe HexString -> m HexString
- getChildStorageSize :: JsonRpc m => HexString -> HexString -> Int -> HexString -> Maybe HexString -> m Int
- getKeys :: JsonRpc m => HexString -> Maybe HexString -> m [HexString]
- getMetadata :: JsonRpc m => m Metadata
- getReadProof :: JsonRpc m => [HexString] -> Maybe HexString -> m ReadProof
- getRuntimeVersion :: JsonRpc m => Maybe HexString -> m RuntimeVersion
- getStorage :: JsonRpc m => HexString -> Maybe HexString -> m HexString
- getStorageHash :: JsonRpc m => HexString -> Maybe HexString -> m HexString
- getStorageSize :: JsonRpc m => HexString -> Maybe HexString -> m Int
- queryStorage :: JsonRpc m => [HexString] -> HexString -> Maybe HexString -> m [StorageChangeSet]
- queryStorageAt :: JsonRpc m => [HexString] -> Maybe HexString -> m [StorageChangeSet]
Documentation
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.
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.
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.
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.
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.
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 Metadata Source #
Returns the runtime metadata.
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.
Arguments
| :: JsonRpc m | |
| => Maybe HexString | Block hash or nothing for head |
| -> m RuntimeVersion |
Get runtime version.
Retrieves the storage for a key.
Retrieves the storage hash.
Retrieves the storage size.
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.
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.