{"_id":"@digital-mineral/agent-pay-handshake","name":"@digital-mineral/agent-pay-handshake","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@digital-mineral/agent-pay-handshake","version":"0.1.0","description":"x402 compliant middleware for agentic micro-transactions on Base","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"dependencies":{"hono":"^4.0.0","ethers":"^6.11.1"},"_id":"@digital-mineral/agent-pay-handshake@0.1.0","_nodeVersion":"25.8.2","_npmVersion":"11.12.1","dist":{"integrity":"sha512-gXcOe+441CatDIjrf5GXx/9idg7BwNiSr1VQlga25rMrsTsvcj2QwSTP5hMSo3TKruGEYBot2VDsVNiuLW733Q==","shasum":"82c9b05112971269a69c441e38842e10fa8671bc","tarball":"https://registry.npmjs.org/@digital-mineral/agent-pay-handshake/-/agent-pay-handshake-0.1.0.tgz","fileCount":6,"unpackedSize":3561,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDVT5pg0g8smxv2iaQOU+12RRwrnfgx4g5xL32rOZFY/QIhAMKdVNlxk92tSzCuSGm9DVQbeXBo21rm6yUoEXIq9Cj/"}]},"_npmUser":{"name":"digitalmineralsolutions","email":"outsidegems@gmail.com"},"directories":{},"maintainers":[{"name":"digitalmineralsolutions","email":"outsidegems@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-pay-handshake_0.1.0_1776355018155_0.6828976426836924"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-16T15:56:57.956Z","0.1.0":"2026-04-16T15:56:58.277Z","modified":"2026-04-16T15:56:58.568Z"},"maintainers":[{"name":"digitalmineralsolutions","email":"outsidegems@gmail.com"}],"description":"x402 compliant middleware for agentic micro-transactions on Base","readme":"# @digital-mineral/agent-pay-handshake\n\nAn x402-compliant middleware designed for the 2026 agentic economy. \n\nThis package allows developers to easily monetize their Edge compute, APIs, and AI infrastructure by requiring autonomous AI agents to perform micro-transactions before accessing resources. Optimized for the Base network and lightweight edge devices.\n\n## Features\n- **x402 Protocol Native:** Standardized HTTP 402 \"Payment Required\" handshakes.\n- **Agent-Ready:** Designed for M2M (Machine-to-Machine) commerce via Smart Wallets.\n- **Edge Optimized:** Built with Hono for maximum performance on ARM64 architectures and edge nodes.\n\n## Installation\n\\`\\`\\`bash\nnpm install @digital-mineral/agent-pay-handshake\n\\`\\`\\`\n\n## Quick Start\nWrap your endpoints to require a micro-transaction before execution.\n\n\\`\\`\\`typescript\nimport { Hono } from 'hono';\nimport { agentPayHandshake } from '@digital-mineral/agent-pay-handshake';\n\nconst app = new Hono();\n\napp.use('/v1/secure-data', agentPayHandshake({\n  recipientAddress: '0xYourWalletAddress',\n  priceUsdc: '0.005',\n  chainId: 8453 // Base Network\n}));\n\napp.post('/v1/secure-data', (c) => {\n  return c.json({ data: \"Highly valuable, verified data.\" });\n});\n\\`\\`\\`\n\n## Powered By\nDeveloped by **Digital Mineral Solutions LLC**. \nBuilding sovereign infrastructure for the DePIN and AI agent ecosystem.\n","readmeFilename":"README.md","_rev":"1-70abb826f70179c15ee61d9b9009b244"}