vapi-network 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/cli.js +316 -153
- package/dist/cli.js.map +2 -2
- package/dist/index.js +322 -153
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ vapi pay <listing-ref> --max 0.02
|
|
|
29
29
|
vapi balance
|
|
30
30
|
vapi accounts # balances plus network-specific deposit guidance
|
|
31
31
|
vapi receipts # one line per paid call: quote, settlement, latency
|
|
32
|
+
vapi export-key # print the private key for this wallet, on stdout only
|
|
32
33
|
```
|
|
33
34
|
|
|
34
35
|
`vapi search` tags each listing with its group — `[vapi]`, `[added]`,
|
|
@@ -117,6 +118,21 @@ faucet URL or instructions to that network's `config.json` entry:
|
|
|
117
118
|
Account lookup dispatches by CAIP namespace: the EVM and Solana adapters use their corresponding
|
|
118
119
|
local address and guarded RPC balance calls without coupling one wallet family to the other.
|
|
119
120
|
|
|
121
|
+
## Exporting the key
|
|
122
|
+
|
|
123
|
+
The wallet is yours, so the key can leave on demand:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
vapi export-key # EVM key (eip155:8453) as 0x-prefixed hex
|
|
127
|
+
vapi export-key --network solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d
|
|
128
|
+
vapi export-key --json # { "network", "address", "privateKey" }
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
The command asks for the keystore passphrase, prints a one-line warning on
|
|
132
|
+
stderr, and writes the key alone on stdout so it can be piped into a password
|
|
133
|
+
manager. Anyone holding that key can spend the wallet: never paste it into a
|
|
134
|
+
website or a chat. Nothing else in vAPI ever logs it.
|
|
135
|
+
|
|
120
136
|
## Reporting a bug
|
|
121
137
|
|
|
122
138
|
```bash
|
|
@@ -179,8 +195,11 @@ provenance:
|
|
|
179
195
|
`https://api.vapinetwork.ai/api/call/discovery` for discovery and
|
|
180
196
|
`https://api.vapinetwork.ai/api/call/services` for service details. If the
|
|
181
197
|
primary returns HTTP 404 or cannot be resolved, the client logs one notice
|
|
182
|
-
and tries the
|
|
183
|
-
the
|
|
198
|
+
and tries the fallbacks in `registryFallbacks`, using the same canonical
|
|
199
|
+
paths; the default distribution no longer ships a distinct fallback host,
|
|
200
|
+
because the `console.vapinetwork.ai` and `console-staging.vapinetwork.ai`
|
|
201
|
+
hosts are retired. A `config.json` that still names them is repaired in
|
|
202
|
+
memory on load and rewritten on disk by `vapi init`. The registry's historical `/api/marketplace/discovery`
|
|
184
203
|
and `/api/network/services` paths still answer for one release and reply with
|
|
185
204
|
`Deprecation: true` plus a `Link` header naming the successor; a base URL
|
|
186
205
|
supplied on either of them is normalized to the canonical pair.
|