Skip to content

Commit

Permalink
Quickstart review
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 24, 2024
1 parent e9136ff commit 0da6375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions sdk/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ await indexClient.authenticate();
We're almost ready. Now, let's create an Index, with a title.

```typescript
const indexId = await indexClient.createIndex(title: "Future of publishing");
const index = await indexClient.createIndex(title: "Future of publishing");
```

Great, now you have a truly decentralized index to interact with! Though it's empty, which means we need to create and add an [`Item`](../api-reference/indexing/item.md) into it so we can interact. Let's do that.
Expand All @@ -57,7 +57,7 @@ const webPageId = await indexClient.crawlWebPage({
url: "http://www.paulgraham.com/publishing.html",
});

await indexClient.addItemToIndex(indexId, webPageId);
await indexClient.addItemToIndex(index.id, webPageId);
```

Your index is now ready for interaction! To start a conversation and interact with the data, follow these steps:
Expand All @@ -67,7 +67,6 @@ Your index is now ready for interaction! To start a conversation and interact wi
const conversationParams = {
sources: [index.id],
summary: "Mock summary",
members: [indexClient.wallet.address],
};
const conversation = await indexClient.createConversation(conversationParams);

Expand Down
2 changes: 1 addition & 1 deletion sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@indexnetwork/sdk",
"version": "0.1.5",
"version": "0.1.6",
"main": "dist/indexclient.cjs.js",
"module": "dist/indexclient.es.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 0da6375

Please sign in to comment.