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