{"_id":"@animus-tendens/pons-sdk","_rev":"2-7e67ebb9c6b7d002d2517b0972f3b8e3","name":"@animus-tendens/pons-sdk","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@animus-tendens/pons-sdk","version":"1.0.0","keywords":["x402","xrpl","pons","agentic-commerce","payment-required","http-402"],"author":{"name":"Vectis"},"license":"ISC","_id":"@animus-tendens/pons-sdk@1.0.0","maintainers":[{"name":"guidoalejo","email":"guido.morales@proton.me"}],"dist":{"shasum":"e440166958b6a161a7463ceba85e26af22c0a529","tarball":"https://registry.npmjs.org/@animus-tendens/pons-sdk/-/pons-sdk-1.0.0.tgz","fileCount":18,"integrity":"sha512-rg5rCQ7zsxCdvTvyBWgGw3HWamBE/ePhsZux5MtVFwD900yRfsf6O+9hvoLh/edrBU1RQK2eUoEvKvk7BKBnVg==","signatures":[{"sig":"MEQCIGAOWgKBX3lFPXRpUIRIl0ooq8qQ0nUKr12t+WUlfXWyAiB6ZSwVMrfWz+te13GdfCafuXQjNXM3LAH+4dZK+1bFUw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11833},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"guidoalejo","email":"guido.morales@proton.me"},"_npmVersion":"11.6.2","description":"x402 client SDK for agentic commerce on XRPL — types, codec, and AgentClient for HTTP 402 payment flows","directories":{},"_nodeVersion":"24.13.0","dependencies":{"xrpl":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/pons-sdk_1.0.0_1783441135888_0.5269596448305343","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Moved"}},"time":{"created":"2026-07-07T16:18:55.763Z","modified":"2026-09-23T01:38:56.821Z","1.0.0":"2026-07-07T16:18:56.019Z"},"author":{"name":"Vectis"},"license":"ISC","keywords":["x402","xrpl","pons","agentic-commerce","payment-required","http-402"],"description":"x402 client SDK for agentic commerce on XRPL — types, codec, and AgentClient for HTTP 402 payment flows","maintainers":[{"name":"guidoalejo","email":"guido.morales@proton.me"}],"readme":"# @animus-tendens/pons-sdk\n\nClient SDK for **agentic commerce** over the [x402](https://x402.org) protocol on the XRP Ledger (XRPL). Agents and applications use this package to call HTTP APIs that require on-chain payment before granting access.\n\nThe SDK exposes typed x402 contracts, a Base64 challenge codec, and `AgentClient` — an HTTP client that automatically handles the 402 Payment Required handshake: decode the challenge, sign an XRPL `Payment`, and retry the request with a `PAYMENT-SIGNATURE` header.\n\n## Installation\n\n```bash\nnpm i @animus-tendens/pons-sdk\n```\n\n## Usage\n\nSet `CLIENT_WALLET_SEED` (XRPL wallet seed) and `XRPL_NODE` (rippled WebSocket URL) in your environment, then instantiate `AgentClient` and call `request`:\n\n```typescript\nimport { AgentClient } from \"@animus-tendens/pons-sdk\";\n\nconst client = new AgentClient({\n  baseUrl: \"http://localhost:3000\",\n  // walletSeed: \"sEd7...\" // optional if CLIENT_WALLET_SEED is set\n});\n\nconst response = await client.request(\"/api/premium-data\");\nconsole.log(response.status, response.data);\n```\n\nOn a protected route, the client receives HTTP 402, signs the XRPL payment described in the `PAYMENT-REQUIRED` header, resends the request, and returns the upstream response along with any `PAYMENT-RESPONSE` settlement metadata.\n\n## License\n\nISC\n","readmeFilename":"README.md"}