You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .chain-interactions/query-data/query-sdks.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,6 @@ This guide demonstrates how to query on-chain storage using five popular SDKs:
20
20
21
21
Select your preferred SDK below to see complete, runnable examples that query Polkadot Hub for account balances and asset information.
22
22
23
-
!!! note
24
-
Ensure to replace `INSERT_WS_ENDPOINT` with the proper WebSocket endpoint and `INSERT_ADDRESS` with the account address you want to query. For this example, you can use Polkadot Hub (`wss://polkadot-asset-hub-rpc.polkadot.io`).
25
-
26
23
## Query On-Chain Data
27
24
28
25
=== "PAPI"
@@ -66,6 +63,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
67
+
69
68
Run the script:
70
69
71
70
```bash
@@ -86,6 +85,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
89
+
89
90
Run the script:
90
91
91
92
```bash
@@ -133,6 +134,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
138
+
136
139
Run the script:
137
140
138
141
```bash
@@ -153,6 +156,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
160
+
156
161
Run the script:
157
162
158
163
```bash
@@ -198,6 +203,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
207
+
201
208
Run the script:
202
209
203
210
```bash
@@ -218,6 +225,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
229
+
221
230
Run the script:
222
231
223
232
```bash
@@ -262,6 +271,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
275
+
265
276
Run the script:
266
277
267
278
```bash
@@ -282,6 +293,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
297
+
285
298
Run the script:
286
299
287
300
```bash
@@ -321,6 +334,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
356
+
340
357
Run the script:
341
358
342
359
```bash
@@ -360,6 +377,8 @@ Select your preferred SDK below to see complete, runnable examples that query Po
Ensure to replace `INSERT_WS_ENDPOINT` with a valid WebSocket endpoint (e.g., `wss://polkadot-asset-hub-rpc.polkadot.io`) and `INSERT_ADDRESS` with the account address you want to query.
0 commit comments