{"_id":"@agentpay-sui/facilitator","name":"@agentpay-sui/facilitator","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentpay-sui/facilitator","version":"0.1.0","type":"module","main":"./dist/facilitator.js","types":"./dist/facilitator.d.ts","exports":{".":{"types":"./dist/facilitator.d.ts","import":"./dist/facilitator.js"},"./next-runtime":{"types":"./dist/next-runtime.d.ts","import":"./dist/next-runtime.js"}},"bin":{"agentpay-facilitator":"dist/server.js"},"publishConfig":{"access":"public"},"dependencies":{"@mysten/sui":"^1.44.0","express":"^5.2.1","@agentpay-sui/shared":"0.1.0"},"devDependencies":{"@types/express":"^5.0.6","@types/node":"^25.0.0","tsx":"^4.21.0","typescript":"^5.9.3"},"scripts":{"build":"tsc -p tsconfig.build.json","dev":"tsx src/server.ts","phase4:publish":"tsx scripts/phase4-publish.ts","phase4:setup":"tsx scripts/phase4-setup.ts","phase4:smoke":"tsx scripts/phase4-smoke.ts","phase6:setup":"tsx scripts/phase6-setup.ts","phase6:walrus":"tsx scripts/phase6-walrus.ts","phase8:session":"tsx scripts/phase8-session.ts","test":"node --experimental-strip-types --experimental-specifier-resolution=node --test test/*.test.ts","typecheck":"tsc -p tsconfig.json --noEmit"},"_id":"@agentpay-sui/facilitator@0.1.0","description":"Self-hostable AgentPay facilitator for Sui x402 payments.","_integrity":"sha512-FYXP14aIPz0YlNs7O/qsEVw0HRKoyDissNJdGEDUG0W+M7RQ/dbPWZkxqSnBNTwT+Rh0TICC33eTpBLNZCqajQ==","_resolved":"/private/var/folders/s0/b6zql__n7v19sv58nl_4096w0000gn/T/84add2afc845494880eeac7eaaf80eee/agentpay-sui-facilitator-0.1.0.tgz","_from":"file:agentpay-sui-facilitator-0.1.0.tgz","_nodeVersion":"25.5.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-FYXP14aIPz0YlNs7O/qsEVw0HRKoyDissNJdGEDUG0W+M7RQ/dbPWZkxqSnBNTwT+Rh0TICC33eTpBLNZCqajQ==","shasum":"6adff4b2b1e1b425d25eb1d59196fd5b0547969c","tarball":"https://registry.npmjs.org/@agentpay-sui/facilitator/-/facilitator-0.1.0.tgz","fileCount":11,"unpackedSize":50938,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC26P2F2qy4X6kL7ACWjO0pQUswCqk1HoEBvOdvRLD3hAIhAJ1vgVQSdAkKJ6mXD3I1AhEBq5CqruTouxr7JLEdfNdj"}]},"_npmUser":{"name":"divi280605","email":"divyansh242805@gmail.com"},"directories":{},"maintainers":[{"name":"divi280605","email":"divyansh242805@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/facilitator_0.1.0_1781255875817_0.6508209403076293"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-12T09:17:55.690Z","0.1.0":"2026-06-12T09:17:55.955Z","modified":"2026-06-12T09:17:56.148Z"},"maintainers":[{"name":"divi280605","email":"divyansh242805@gmail.com"}],"description":"Self-hostable AgentPay facilitator for Sui x402 payments.","readme":"# @agentpay-sui/facilitator\n\nSelf-hostable AgentPay facilitator for Sui x402 payments.\n\nThe facilitator exposes:\n\n- `POST /verify`: validate `PaymentAuth`, tool binding, nonce state, wallet ownership, allowance, and balance\n- `POST /settle`: submit the Sui PTB that settles payment, mints a receipt, and optionally consumes a feedback right for reputation\n\n## Run\n\n```bash\nagentpay-facilitator\n```\n\nRequired environment:\n\n```bash\nAGENTPAY_NETWORK=sui:testnet\nAGENTPAY_PACKAGE_ID=0x...\nAGENTPAY_NONCE_REGISTRY_ID=0x...\nAGENTPAY_REPUTATION_REGISTRY_ID=0x...\nAGENTPAY_FACILITATOR_PRIVATE_KEY=suiprivkey...\nAGENTPAY_TOOLS_JSON='[{\"toolId\":\"0x...\",\"expectedPayee\":\"0x...\",\"coinType\":\"0x2::sui::SUI\",\"defaultAgentId\":\"0x...\",\"defaultWalletId\":\"0x...\"}]'\n```\n\nOptional native Sui gas sponsorship:\n\n```bash\nAGENTPAY_SPONSOR_PRIVATE_KEY=suiprivkey...\nAGENTPAY_SPONSOR_GAS_BUDGET=50000000\nAGENTPAY_SPONSOR_GAS_COIN_LIMIT=8\n```\n\nWhen sponsor env is set, the facilitator builds a Sui sponsored transaction:\nthe facilitator signer remains the transaction sender, the sponsor wallet owns the gas\npayment, and the transaction is submitted with both signatures.\n\n## Embed\n\n```ts\nimport {\n  FacilitatorService,\n  createFacilitatorApp,\n} from \"@agentpay-sui/facilitator\";\n\nconst service = new FacilitatorService(config);\nconst app = createFacilitatorApp(service);\napp.listen(8080);\n```\n","readmeFilename":"README.md","_rev":"1-cf03e3338a9cf8b2f1d0ea1017fedf1e"}