From bfa77c01a66a1041c31a30b9b706643da7d64aa7 Mon Sep 17 00:00:00 2001 From: Dias Fajar Taufiq Date: Thu, 3 Dec 2026 12:42:40 +0000 Subject: [PATCH] docs: SDK examples must name an existing vault account The lead createVapiClient examples in README.md and docs/sdk.md passed { account: "researcher" }, a wallet that does not exist on a new machine, so the first snippet a new SDK user runs throws KeystoreError: No wallet named researcher. Use the "main" account that vapi setup creates and say the account must already exist. Signed-off-by: Dias Fajar Taufiq --- README.md | 6 +++++- docs/sdk.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87cfbde..043c5c7 100644 --- a/README.md +++ b/README.md @@ -124,12 +124,16 @@ Call the same client from TypeScript: ```ts import { createVapiClient } from "vapi-network"; -const vapi = await createVapiClient({ account: "researcher" }); +const vapi = await createVapiClient({ account: "main" }); const listings = await vapi.call.search("Base DEX volume"); const result = await vapi.call.pay({ id: "base-dex-volume", maxPriceUsd: 0.05 }); console.log(result.body); ``` +The `account` name must already exist in your vault: `vapi setup` creates +`main`, and `vapi accounts add ` creates more. Passing a name that does +not exist throws `KeystoreError: No wallet named …`. + The MCP server has no tool that reveals a recovery phrase or a private key, and no tool that creates or retires a Call registry listing. The tool list is in [docs/mcp.md](./docs/mcp.md#tools). diff --git a/docs/sdk.md b/docs/sdk.md index 345c46a..2d07fa3 100644 --- a/docs/sdk.md +++ b/docs/sdk.md @@ -16,7 +16,7 @@ npm i vapi-network ```ts import { createVapiClient } from "vapi-network"; -const vapi = await createVapiClient({ account: "researcher" }); +const vapi = await createVapiClient({ account: "main" }); const reply = await vapi.router.chat({ model: "venice/claude-sonnet-5", messages: [{ role: "user", content: "Summarise Base DEX activity." }], @@ -34,6 +34,10 @@ console.log(receipt, purchase.balance); for (const warning of purchase.warnings ?? []) console.warn(warning.message); ``` +The `account` name must already exist in your vault: `vapi setup` creates +`main`, and `vapi accounts add ` creates more. Passing a name that does +not exist throws `KeystoreError: No wallet named …`. + Never repeat a purchase because of a warning; the receipt is the proof of payment. The `docs` namespace needs no wallet, account, credential or payment. It is