We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb7fd36 commit 79e5042Copy full SHA for 79e5042
examples/read.js
@@ -6,12 +6,13 @@ import { WsProvider } from "@polkadot/api";
6
7
8
async function main() {
9
+ // Bob's address
10
const ws = new WsProvider('ws://localhost:12346');
11
const bobApi = await ApiPromise.create({ provider: ws });
12
await bobApi.isReady;
13
const chainSpec = (await bobApi.rpc.syncstate.genSyncSpec(true)).toString();
14
- // Bob's address
15
+ // Alice's address
16
const provider = new WsProvider('ws://localhost:10000');
17
const api = await ApiPromise.create({ provider });
18
await api.isReady;
0 commit comments