Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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
:: 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.
:: 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.
:: 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.
:: 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.
:: 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.
Retrieves the keys with a certain prefix.
getMetadata :: JsonRpc m => m Metadata Source #
Returns the runtime metadata.
Returns proof of storage entries at a specific block state.
:: 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.
:: 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.
:: 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.