{"_id":"@chainvue/v402-verus-rpc","name":"@chainvue/v402-verus-rpc","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@chainvue/v402-verus-rpc","version":"0.1.0","description":"Minimal, v402-scoped Verus daemon JSON-RPC client: only the RPC methods the v402 payment stack needs, wrapped in a 500ms-timeout + circuit-breaker policy. Includes a mock implementation for tests. Deliberately not a general-purpose Verus client.","repository":{"type":"git","url":"git+https://github.com/chainvue/v402.git","directory":"packages/verus-rpc"},"homepage":"https://github.com/chainvue/v402/tree/main/packages/verus-rpc#readme","bugs":{"url":"https://github.com/chainvue/v402/issues"},"license":"Apache-2.0","author":{"name":"Robert Lech","url":"chainvue"},"type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"cockatiel":"^4.0.0"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json","test":"vitest run"},"_id":"@chainvue/v402-verus-rpc@0.1.0","_integrity":"sha512-+c0ansG+07zC4JNwai64drhp06WwWoWtDcpMHYOrOy7JSpL03Ax+nEnzQpN5MRiGBqjvduMcWEahHe07UFRpfQ==","_resolved":"/private/var/folders/lc/_1dmy3kd06b9ryyyvv7pk9vw0000gn/T/928b8650ad2124f0f29c267d6cba1eee/chainvue-v402-verus-rpc-0.1.0.tgz","_from":"file:chainvue-v402-verus-rpc-0.1.0.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-+c0ansG+07zC4JNwai64drhp06WwWoWtDcpMHYOrOy7JSpL03Ax+nEnzQpN5MRiGBqjvduMcWEahHe07UFRpfQ==","shasum":"3c409f08183d693ba9bb5a8c44307fbe3a3063c6","tarball":"https://registry.npmjs.org/@chainvue/v402-verus-rpc/-/v402-verus-rpc-0.1.0.tgz","fileCount":27,"unpackedSize":49028,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDCUKzeNKWTB1+8r36kjDtqSpOXFDp/pt/I8wH7VaZfrAiAggfOBAuW2nZi49jf+xIe/Uyc0lwJaMPy2gMH2Hlfhcg=="}]},"_npmUser":{"name":"devdudeio","email":"fLoAtivErImE@proton.me"},"directories":{},"maintainers":[{"name":"devdudeio","email":"fLoAtivErImE@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/v402-verus-rpc_0.1.0_1783727468316_0.8671090664937597"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-10T23:51:08.104Z","0.1.0":"2026-07-10T23:51:08.441Z","modified":"2026-07-10T23:51:08.785Z"},"maintainers":[{"name":"devdudeio","email":"fLoAtivErImE@proton.me"}],"description":"Minimal, v402-scoped Verus daemon JSON-RPC client: only the RPC methods the v402 payment stack needs, wrapped in a 500ms-timeout + circuit-breaker policy. Includes a mock implementation for tests. Deliberately not a general-purpose Verus client.","homepage":"https://github.com/chainvue/v402/tree/main/packages/verus-rpc#readme","repository":{"type":"git","url":"git+https://github.com/chainvue/v402.git","directory":"packages/verus-rpc"},"author":{"name":"Robert Lech","url":"chainvue"},"bugs":{"url":"https://github.com/chainvue/v402/issues"},"license":"Apache-2.0","readme":"# @chainvue/v402-verus-rpc\n\n**Minimal, v402-scoped** Verus daemon JSON-RPC client: exactly the RPC methods\nthe [v402](https://github.com/chainvue/v402) payment stack needs\n(`verifymessage` with `checklatest`, `signmessage`, `getidentity`, block/tx\nlookups, `getcurrencybalance`, `sendcurrency`), wrapped in a 500 ms-timeout +\ncircuit-breaker policy (cockatiel). Includes `MockVerusRpc` for tests.\n\nThis is **deliberately not a general-purpose Verus client** and will stay\nminimal — it exists so the payment path has a small, auditable RPC surface.\n\n```sh\nnpm install @chainvue/v402-verus-rpc\n```\n\n```ts\nimport { VerusRpcClient } from \"@chainvue/v402-verus-rpc\";\n\nconst rpc = new VerusRpcClient({\n  rpcUrl: \"http://127.0.0.1:18843\",\n  rpcUser: \"...\",\n  rpcPass: \"...\",\n});\nconst ok = await rpc.verifyMessage(\"v402test@\", signature, message, true);\n```\n\nFailure semantics worth knowing: JSON-RPC application errors (e.g. a malformed\nsignature) do **not** count as circuit-breaker failures — only transport-level\nfailures trip the breaker, so signature spam cannot deny service.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md","_rev":"1-8159479066c6d35be3608d38ff08df7a"}