Skip to content

Commit f48b9bf

Browse files
committed
feat: update client type to 1.15
1 parent 895f1f8 commit f48b9bf

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/pages/client.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ interface PolkadotClient {
4040
*/
4141
getBestBlocks: () => Promise<BlockInfo[]>
4242

43+
/**
44+
* Observable of new blocks that have been discovered by the client.
45+
*/
46+
blocks$: Observable<BlockInfo>
47+
4348
/**
4449
* Observable to watch Block Body.
4550
*
@@ -113,6 +118,18 @@ interface PolkadotClient {
113118
*/
114119
getUnsafeApi: <D>() => UnsafeApi<D>
115120

121+
/**
122+
* Returns a Promise that resolves into the encoded value of a storage entry
123+
* or `null` if the key doesn't have a corresponding value.
124+
*
125+
* @param storageKey Either one of the well-known substrate storage keys
126+
* or an hexadecimal storage key.
127+
*/
128+
rawQuery: (
129+
storageKey: HexString | string,
130+
options?: PullOptions,
131+
) => Promise<HexString | null>
132+
116133
/**
117134
* This will `unfollow` the provider, disconnect and error every subscription.
118135
* After calling it nothing can be done with the client.

vocs.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from "vocs"
22

3-
const version = "1.13.0"
3+
const version = "1.15.0"
44

55
export default defineConfig({
66
title: "Polkadot-API",

0 commit comments

Comments
 (0)