Skip to content

docs: fix SDK examples for fresh vault users, npm README links, and NetworkGuard troubleshooting - #130

Open
Agusstyo wants to merge 9 commits into
vAPI-Network:mainfrom
Agusstyo:fix/docs-fresh-user-examples
Open

Agusstyo wants to merge 9 commits into
vAPI-Network:mainfrom
Agusstyo:fix/docs-fresh-user-examples

Conversation

@Agusstyo

@Agusstyo Agusstyo commented Dec 3, 2026

Copy link
Copy Markdown

Found during a fresh-install test of [email protected] (details and verbatim outputs in #129). One line per fix:

  • README/docs SDK example used account "researcher" (a fresh init creates "main") and pay id "base-dex-volume"/"weather" (neither resolves); now uses the default account, pays the ref returned by search, and inspects first.
  • examples/pay-with-sdk.ts always resolved a keystore passphrase, which prompts/throws for vault accounts that need none; now skips the passphrase for vault accounts, matching docs/sdk.md and the SDK client.
  • examples/wallets.ts and the passphrase hints taught the deprecated --wallet flag; now --account (and vapi vault unlock where the old unlock name was taught).
  • The npm tarball shipped the repo-root README, whose 32 relative links point at files not in the tarball; the package now has its own README with absolute links (prepare-publish already prefers a package README).
  • Troubleshooting had no entry for the NetworkGuardError proxied-DNS failure, and configuration.md didn't warn that a partial config.json fails validation; both added.

Test plan: pnpm typecheck (covers example/snippet types), pnpm check (covers passphrase.test.ts expectation updates), pnpm pack:check then confirm every link in packages/vapi-network/publish/README.md resolves inside publish/ or is absolute; fresh-home smoke test of the fixed README snippet (search + inspect succeed; pay only with a funded test wallet).

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