Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <name>` 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).

Expand Down
6 changes: 5 additions & 1 deletion docs/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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." }],
Expand All @@ -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 <name>` 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
Expand Down