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
1 change: 1 addition & 0 deletions docs/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const paths = getVapiPaths();
const config = await loadConfig(paths.config);
const [listing] = await vapiRegistrySource(config.marketplaceDiscoveryUrl, {
discoveryUrl: config.discoveryUrl,
allowPrivateNetwork: config.allowPrivateNetwork ?? false,
}).search("weather");

const store = await WalletStore.open(paths.directory);
Expand Down
1 change: 1 addition & 0 deletions examples/pay-with-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const paths = getVapiPaths();
const config = await loadConfig(paths.config);
const source = vapiRegistrySource(config.marketplaceDiscoveryUrl, {
discoveryUrl: config.discoveryUrl,
allowPrivateNetwork: config.allowPrivateNetwork ?? false,
});
const [listing] = await source.search(query);
if (!listing) throw new Error(`No payable listing found for ${JSON.stringify(query)}.`);
Expand Down