Skip to content

docs(sdk): state the vapi init prerequisite for the createVapiClient example - #142

Open
Autowin22 wants to merge 1 commit into
vAPI-Network:mainfrom
Autowin22:fix/sdk-example-init-step
Open

Autowin22 wants to merge 1 commit into
vAPI-Network:mainfrom
Autowin22:fix/sdk-example-init-step

Conversation

@Autowin22

Copy link
Copy Markdown

What was wrong: the SDK page (and the README quickstart, which shares the example) opens with

const vapi = await createVapiClient({ account: "researcher" });

but never says a wallet has to exist first. Reproduced on a fresh machine (Linux, Node v24.22.1, vapi-network 0.17.5 from npm): the snippet throws KeystoreError: No wallet yet. Run vapi init. at that line, because no vault exists and no account named in the example has been created.

Fix: one short paragraph between the install step and the example stating the prerequisite — run vapi init (or vapi setup) once and pass an existing account name — and noting that only the docs namespace below works without a wallet. Docs-only change, no code touched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant