{"_id":"@bejibun/x402","_rev":"7-cd4b9d35d5b43520efd6c06f7ea93947","name":"@bejibun/x402","dist-tags":{"latest":"0.2.13"},"versions":{"0.1.0":{"name":"@bejibun/x402","version":"0.1.0","keywords":["bun","bun framework","x402","bejibun","typescript"],"author":"Havea Crenata <havea.crenata@gmail.com>","license":"MIT","_id":"@bejibun/x402@0.1.0","maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"homepage":"https://github.com/crenata/bejibun-x402#readme","bugs":{"url":"https://github.com/crenata/bejibun-x402/issues"},"dist":{"shasum":"2f95e439126b7c3ba0dfb6dfb00b078e7ed902d2","tarball":"https://registry.npmjs.org/@bejibun/x402/-/x402-0.1.0.tgz","fileCount":21,"integrity":"sha512-FEy7jYdceIKd1jD2n8c4TXNRBrkI1A7J8eUS7kOBNJNp+KtymkEMrudBNAXM+QwokjAUbklTTsj6Rt9vOzHTQg==","signatures":[{"sig":"MEUCIGyQts4FXx9tT4msmcjwIr4iynIQXOD6sLT0ohzXReIYAiEAqP+Y/7cDguTWR9yW2eVp+2XOzg+6uSrlrtlvzMgVQRg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21328},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","shasum":"2f95e439126b7c3ba0dfb6dfb00b078e7ed902d2","scripts":{"alias":"bunx tsc-alias -p tsconfig.json","build":"bunx tsc -p tsconfig.json && bun run alias && bun run rsync && bun run clean","clean":"rm -rf dist","rsync":"rsync -a dist/ ./","deploy":"bun run build && bun publish --access public"},"_npmUser":{"name":"crenata","email":"havea.crenata@gmail.com"},"_integrity":"sha512-FEy7jYdceIKd1jD2n8c4TXNRBrkI1A7J8eUS7kOBNJNp+KtymkEMrudBNAXM+QwokjAUbklTTsj6Rt9vOzHTQg==","repository":{"url":"git+https://github.com/crenata/bejibun-x402.git","type":"git"},"_npmVersion":"10.8.3","description":"Cache for Bejibun Framework","directories":{},"_nodeVersion":"24.3.0","dependencies":{"x402":"^0.7.2","@bejibun/app":"^0.1.22","@bejibun/utils":"^0.1.21","@bejibun/logger":"^0.1.22"},"_hasShrinkwrap":false,"devDependencies":{"tsc-alias":"^1.8.16","@types/bun":"latest"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.1.0_1763110622060_0.05976500586069444","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bejibun/x402","version":"0.1.1","keywords":["bun","bun framework","x402","bejibun","typescript"],"author":"Havea Crenata <havea.crenata@gmail.com>","license":"MIT","_id":"@bejibun/x402@0.1.1","maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"homepage":"https://github.com/crenata/bejibun-x402#readme","bugs":{"url":"https://github.com/crenata/bejibun-x402/issues"},"dist":{"shasum":"b859ecde857989ed25f16abec8116548a9b0aa4a","tarball":"https://registry.npmjs.org/@bejibun/x402/-/x402-0.1.1.tgz","fileCount":21,"integrity":"sha512-OVirFGtycGtpJ31GnHYjremkEtpkuTb0eBKglnLFa51Nv7mrNhEAC5CtvEwWJNgZjtGTIyonz1wyeq8cZ+T+Yg==","signatures":[{"sig":"MEQCIFlnubbpxn98BJOcopmEuO+rEES+vTqMqZXMJN0SxjshAiBgZQdtPIlmNEJZ3OrwZuaZ9U0rTqlxEjEX8lBJkBD7Tg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21303},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","shasum":"b859ecde857989ed25f16abec8116548a9b0aa4a","scripts":{"alias":"bunx tsc-alias -p tsconfig.json","build":"bunx tsc -p tsconfig.json && bun run alias && bun run rsync && bun run clean","clean":"rm -rf dist","rsync":"rsync -a dist/ ./","deploy":"bun run build && bun publish --access public"},"_npmUser":{"name":"crenata","email":"havea.crenata@gmail.com"},"_integrity":"sha512-OVirFGtycGtpJ31GnHYjremkEtpkuTb0eBKglnLFa51Nv7mrNhEAC5CtvEwWJNgZjtGTIyonz1wyeq8cZ+T+Yg==","repository":{"url":"git+https://github.com/crenata/bejibun-x402.git","type":"git"},"_npmVersion":"10.8.3","description":"Cache for Bejibun Framework","directories":{},"_nodeVersion":"24.3.0","dependencies":{"x402":"^0.7.2","@bejibun/app":"^0.1.22","@bejibun/utils":"^0.1.21","@bejibun/logger":"^0.1.22"},"_hasShrinkwrap":false,"devDependencies":{"tsc-alias":"^1.8.16","@types/bun":"latest"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.1.1_1763336638740_0.7508013239838065","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bejibun/x402","version":"0.2.0","keywords":["bun","bun framework","x402","bejibun","typescript"],"author":"Havea Crenata <havea.crenata@gmail.com>","license":"MIT","_id":"@bejibun/x402@0.2.0","maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"homepage":"https://github.com/Bejibun-Framework/bejibun-x402#readme","bugs":{"url":"https://github.com/Bejibun-Framework/bejibun-x402/issues"},"dist":{"shasum":"2ce85377205842863342743ac625c350b97f942c","tarball":"https://registry.npmjs.org/@bejibun/x402/-/x402-0.2.0.tgz","fileCount":25,"integrity":"sha512-qSp0ceIOKw9xyfQa9cYpDvzQaPfwWmeEBWve8roAq0n5WhtQd3qm8NzUV+TpqxIWaPP3yZCeP/DZxUwIDoBEyg==","signatures":[{"sig":"MEUCIQDI02rQ2VbKn2HJcBjIImeLn5lxxX1cT4aBaPrWVAxElQIgZT78GKVGaL3RKuxaA7fs6KagBPqwLPlcxQgaIK5umf8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30768},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","shasum":"2ce85377205842863342743ac625c350b97f942c","scripts":{"alias":"bunx tsc-alias -p tsconfig.json","build":"bunx tsc -p tsconfig.json && bun run types && bun run alias && bun run rsync && bun run clean","clean":"rm -rf dist","rsync":"rsync -a dist/ ./","types":"cp -rf src/types dist","deploy":"bun run build && bun publish --access public"},"_npmUser":{"name":"crenata","email":"havea.crenata@gmail.com"},"_integrity":"sha512-qSp0ceIOKw9xyfQa9cYpDvzQaPfwWmeEBWve8roAq0n5WhtQd3qm8NzUV+TpqxIWaPP3yZCeP/DZxUwIDoBEyg==","repository":{"url":"git+https://github.com/Bejibun-Framework/bejibun-x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Protocol for Bejibun Framework","directories":{},"_nodeVersion":"24.3.0","dependencies":{"@x402/evm":"^2.17.0","@x402/svm":"^2.17.0","@x402/core":"^2.17.0","@bejibun/app":"^0.1.24","@bejibun/utils":"^0.1.28","@coinbase/x402":"^2.1.0","@bejibun/logger":"^0.1.22"},"_hasShrinkwrap":false,"devDependencies":{"tsc-alias":"^1.8.17","@types/bun":"latest"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.2.0_1783072021707_0.5332363134131501","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@bejibun/x402","version":"0.2.1","keywords":["bun","bun framework","x402","bejibun","typescript"],"author":"Havea Crenata <havea.crenata@gmail.com>","license":"MIT","_id":"@bejibun/x402@0.2.1","maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"homepage":"https://github.com/Bejibun-Framework/bejibun-x402#readme","bugs":{"url":"https://github.com/Bejibun-Framework/bejibun-x402/issues"},"dist":{"shasum":"8aa0ba7fcb6ccbea86d413e5c92236c6971046f9","tarball":"https://registry.npmjs.org/@bejibun/x402/-/x402-0.2.1.tgz","fileCount":25,"integrity":"sha512-q6NHDYJXMxrSYM3KZGe01Z9nkfoTOPjrMS2I28EyckBL7jirOWWxmmV0TKmdsIqm81iv0yFshxNILix8+Xx6QQ==","signatures":[{"sig":"MEYCIQCKND648Kpqb3Eo0kFBWNUhbgnwCu0O7C7AO3yOlOc21AIhAKY0CdnF5Gf5YkzB2OFQD7ngSCSzsryM5/+RU4jN0nKa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31125},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","shasum":"8aa0ba7fcb6ccbea86d413e5c92236c6971046f9","scripts":{"alias":"bunx tsc-alias -p tsconfig.json","build":"bunx tsc -p tsconfig.json && bun run types && bun run alias && bun run rsync && bun run clean","clean":"rm -rf dist","rsync":"rsync -a dist/ ./","types":"cp -rf src/types dist","deploy":"bun run build && bun publish --access public"},"_npmUser":{"name":"crenata","email":"havea.crenata@gmail.com"},"_integrity":"sha512-q6NHDYJXMxrSYM3KZGe01Z9nkfoTOPjrMS2I28EyckBL7jirOWWxmmV0TKmdsIqm81iv0yFshxNILix8+Xx6QQ==","repository":{"url":"git+https://github.com/Bejibun-Framework/bejibun-x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Protocol for Bejibun Framework","directories":{},"_nodeVersion":"24.3.0","dependencies":{"@x402/evm":"^2.17.0","@x402/svm":"^2.17.0","@x402/core":"^2.17.0","@bejibun/app":"^0.1.24","@bejibun/utils":"^0.1.28","@coinbase/x402":"^2.1.0","@bejibun/logger":"^0.1.22"},"_hasShrinkwrap":false,"devDependencies":{"tsc-alias":"^1.8.17","@types/bun":"latest"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.2.1_1783085409149_0.039493706149611674","host":"s3://npm-registry-packages-npm-production"}},"0.2.11":{"name":"@bejibun/x402","version":"0.2.11","keywords":["bun","bun framework","x402","bejibun","typescript"],"author":"Havea Crenata <havea.crenata@gmail.com>","license":"MIT","_id":"@bejibun/x402@0.2.11","maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"homepage":"https://github.com/Bejibun-Framework/bejibun-x402#readme","bugs":{"url":"https://github.com/Bejibun-Framework/bejibun-x402/issues"},"dist":{"shasum":"34fd11ca6e93f365046856e5156ead964062fb83","tarball":"https://registry.npmjs.org/@bejibun/x402/-/x402-0.2.11.tgz","fileCount":28,"integrity":"sha512-xxkcW/97axrGjo9ah7yG3/63Rd4ndJybMYSSy2Ve4VFYV+aZdV1cVHpql2fw4DaH97l+cruF7nQ8EJuEcSkgrQ==","signatures":[{"sig":"MEUCIQDhhqVWYn9yFr/y8LpfjEmNXFYJzOnJJ+A0G/UT1osaJwIgB9OKwZ8foke+yTZNkqsFzNOExSvxXGyR0mW0FPik7m0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35785},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","shasum":"34fd11ca6e93f365046856e5156ead964062fb83","scripts":{"lint":"bun run format && bun run eslint","alias":"tsc-alias -p tsconfig.json","build":"bun run lint && tsc -p tsconfig.json && bun run types && bun run alias && bun run rsync && bun run clean","clean":"rm -rf dist","rsync":"rsync -a dist/ ./","types":"cp -rf src/types dist","deploy":"bun run build && bun publish --access public","eslint":"eslint src","format":"prettier --write src --log-level=silent"},"_npmUser":{"name":"crenata","email":"havea.crenata@gmail.com"},"_integrity":"sha512-xxkcW/97axrGjo9ah7yG3/63Rd4ndJybMYSSy2Ve4VFYV+aZdV1cVHpql2fw4DaH97l+cruF7nQ8EJuEcSkgrQ==","repository":{"url":"git+https://github.com/Bejibun-Framework/bejibun-x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Protocol for Bejibun Framework","directories":{},"_nodeVersion":"24.3.0","dependencies":{"@x402/evm":"^2.23.0","@x402/svm":"^2.23.0","@x402/core":"^2.23.0","@bejibun/app":"^0.1.25","@bejibun/utils":"^0.1.29","@coinbase/x402":"^2.1.0","@bejibun/logger":"^0.1.23"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.8.1","globals":"^17.11.0","prettier":"^3.9.6","tsc-alias":"^1.9.2","@eslint/js":"^10.0.1","@types/bun":"^1.3.14","typescript":"^6.0.3","typescript-eslint":"^8.67.0","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.2.11_1787211849615_0.3015103421894909","host":"s3://npm-registry-packages-npm-production"}},"0.2.12":{"name":"@bejibun/x402","version":"0.2.12","keywords":["bun","bun framework","x402","bejibun","typescript"],"author":"Havea Crenata <havea.crenata@gmail.com>","license":"MIT","_id":"@bejibun/x402@0.2.12","maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"homepage":"https://github.com/Bejibun-Framework/bejibun-x402#readme","bugs":{"url":"https://github.com/Bejibun-Framework/bejibun-x402/issues"},"dist":{"shasum":"ed116c1a250de3c3c2aec995e0666360d88c5020","tarball":"https://registry.npmjs.org/@bejibun/x402/-/x402-0.2.12.tgz","fileCount":40,"integrity":"sha512-jWj06Q/FgC2zNc9voULPcdxcJiumrZ7vQYd2eOgAkkSt3fSObajr7LaFvFuWLDcLNiqNQEbVQlFxd+rgqIagFg==","signatures":[{"sig":"MEQCIBHU5H7MIdnk7VGH4KitKGCvC7OCH3A2KvdbyskZkJtRAiA8qwc56zgD5a4ixUVnJ6E14fibVgrkNjhfmeR7FM10Jw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84992},"main":"index.js","type":"module","types":"index.d.ts","module":"index.js","shasum":"ed116c1a250de3c3c2aec995e0666360d88c5020","scripts":{"lint":"bun run format && bun run eslint","test":"bun test tests/","alias":"tsc-alias -p tsconfig.json","build":"bun run lint && tsc -p tsconfig.json && bun run types && bun run alias && bun run rsync && bun run clean","clean":"rm -rf dist","rsync":"rsync -a dist/ ./","types":"cp -rf src/types dist","deploy":"bun run build && bun publish --access public","eslint":"eslint src","format":"prettier --write src --log-level=silent"},"_npmUser":{"name":"crenata","email":"havea.crenata@gmail.com"},"_integrity":"sha512-jWj06Q/FgC2zNc9voULPcdxcJiumrZ7vQYd2eOgAkkSt3fSObajr7LaFvFuWLDcLNiqNQEbVQlFxd+rgqIagFg==","repository":{"url":"git+https://github.com/Bejibun-Framework/bejibun-x402.git","type":"git"},"_npmVersion":"10.8.3","description":"x402 Protocol for Bejibun Framework","directories":{},"_nodeVersion":"26.3.0","dependencies":{"@x402/evm":"^2.25.0","@x402/svm":"^2.25.0","@x402/core":"^2.25.0","@bejibun/app":"^0.1.26","@bejibun/utils":"^0.1.30","@coinbase/x402":"^2.1.0","@bejibun/logger":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.9.1","globals":"^17.12.0","prettier":"^3.9.6","tsc-alias":"^1.9.4","@eslint/js":"^10.0.1","@types/bun":"^1.4.0","typescript":"^6.0.3","typescript-eslint":"^8.69.0","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.2.12_1788524010758_0.42165444435287314","host":"s3://npm-registry-packages-npm-production"}},"0.2.13":{"name":"@bejibun/x402","version":"0.2.13","author":"Havea Crenata <havea.crenata@gmail.com>","repository":{"type":"git","url":"git+https://github.com/Bejibun-Framework/bejibun-x402.git"},"main":"index.js","module":"index.js","devDependencies":{"@eslint/js":"^10.0.1","@types/bun":"^1.4.2","eslint":"^10.10.0","eslint-config-prettier":"^10.1.8","globals":"^17.12.0","prettier":"^3.9.6","tsc-alias":"^1.9.4","typescript":"^6.0.3","typescript-eslint":"^8.70.0"},"bugs":{"url":"https://github.com/Bejibun-Framework/bejibun-x402/issues"},"description":"x402 Protocol for Bejibun Framework","homepage":"https://github.com/Bejibun-Framework/bejibun-x402#readme","keywords":["bun","bun framework","x402","bejibun","typescript"],"license":"MIT","scripts":{"alias":"tsc-alias -p tsconfig.json","types":"cp -rf src/types dist","rsync":"rsync -a dist/ ./","clean":"rm -rf dist","format":"prettier --write src --log-level=silent","eslint":"eslint src","lint":"bun run format && bun run eslint","test":"bun test tests/","build":"bun run lint && tsc -p tsconfig.json && bun run types && bun run alias && bun run rsync && bun run clean","deploy":"bun run build && bun publish --access public"},"type":"module","types":"index.d.ts","dependencies":{"@bejibun/app":"^0.1.27","@bejibun/logger":"^0.2.10","@bejibun/utils":"^0.1.31","@coinbase/x402":"^2.1.0","@x402/core":"^2.25.0","@x402/evm":"^2.25.0","@x402/svm":"^2.25.0"},"_id":"@bejibun/x402@0.2.13","_integrity":"sha512-LZNFwGoY6/IApiP68uAJFJs/CIWXn1a/pgG3XqFBWuwfIpimKNHJXK8TrbSAFdTh57L0ie0KQLcJLGhZVmvnlg==","_nodeVersion":"26.3.0","_npmVersion":"10.8.3","shasum":"2f0bea5509a0aef30b023cb96dce363a10b2392c","dist":{"integrity":"sha512-LZNFwGoY6/IApiP68uAJFJs/CIWXn1a/pgG3XqFBWuwfIpimKNHJXK8TrbSAFdTh57L0ie0KQLcJLGhZVmvnlg==","shasum":"2f0bea5509a0aef30b023cb96dce363a10b2392c","tarball":"https://registry.npmjs.org/@bejibun/x402/-/x402-0.2.13.tgz","fileCount":40,"unpackedSize":84994,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEEISKp7A3FALNlStw8lSr6dVrQU9Q8r7juF6JaRq5btAiEAp4kks8E0oX5d7fgYgnkiXxiiyBhEjnB6oQhp4kh4hlg="}]},"_npmUser":{"name":"crenata","email":"havea.crenata@gmail.com"},"directories":{},"maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x402_0.2.13_1788851167992_0.8636582104534414"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-14T08:57:01.984Z","modified":"2026-09-08T07:06:08.353Z","0.1.0":"2025-11-14T08:57:02.251Z","0.1.1":"2025-11-16T23:43:58.938Z","0.2.0":"2026-07-03T09:47:01.851Z","0.2.1":"2026-07-03T13:30:09.326Z","0.2.11":"2026-08-20T07:44:09.819Z","0.2.12":"2026-09-04T12:13:30.885Z","0.2.13":"2026-09-08T07:06:08.131Z"},"bugs":{"url":"https://github.com/Bejibun-Framework/bejibun-x402/issues"},"author":"Havea Crenata <havea.crenata@gmail.com>","license":"MIT","homepage":"https://github.com/Bejibun-Framework/bejibun-x402#readme","keywords":["bun","bun framework","x402","bejibun","typescript"],"repository":{"type":"git","url":"git+https://github.com/Bejibun-Framework/bejibun-x402.git"},"description":"x402 Protocol for Bejibun Framework","maintainers":[{"name":"crenata","email":"havea.crenata@gmail.com"}],"readme":"<div align=\"center\">\n\n<img src=\"https://github.com/Bejibun-Framework/bejibun/blob/master/public/images/bejibun.png?raw=true\" width=\"150\" alt=\"Bejibun\" />\n\n![GitHub top language](https://img.shields.io/github/languages/top/Bejibun-Framework/bejibun-x402)\n![NPM Downloads](https://img.shields.io/npm/d18m/%40bejibun%2Fx402)\n![GitHub issues](https://img.shields.io/github/issues/Bejibun-Framework/bejibun-x402)\n![GitHub](https://img.shields.io/github/license/Bejibun-Framework/bejibun-x402)\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/Bejibun-Framework/bejibun-x402?display_name=tag&include_prereleases)\n\n</div>\n\n# x402 for Bejibun\nx402 for Bejibun Framework.\n\n## Usage\n\n### Installation\nInstall the package.\n\n```bash\n# Using Bun\nbun add @bejibun/x402\n\n# Using Bejibun\nbun ace install @bejibun/x402\n```\n\n### Configuration\nThe configuration file automatically executed if you are using `ace`.\n\nOr\n\nAdd `x402.ts` inside config directory on your project if doesn't exist.\n\n```bash\nconfig/x402.ts\n```\n\n```ts config/x402.ts\nimport type {TFacilitator, TNetwork, TPrice, TScheme} from \"@bejibun/x402/types\";\nimport {facilitator} from \"@coinbase/x402\";\n\nconst config: Record<string, any> = {\n    scheme: \"exact\" as TScheme,\n    price: \"$1\" as TPrice,\n    networks: [\n        {\n            network: \"eip155:8453\" as TNetwork,\n            payTo: \"0xdABe8750061410D35cE52EB2a418c8cB004788B3\"\n        },\n        {\n            network: \"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\" as TNetwork,\n            payTo: \"GAnoyvy9p3QFyxikWDh9hA3fmSk2uiPLNWyQ579cckMn\"\n        }\n    ],\n    facilitator: facilitator as TFacilitator\n};\n\nexport default config;\n```\n\nYou can pass the value with environment variables.\n\n### How to Use\nHow to use tha package.\n\n```ts\nimport type {TFacilitator, TRoutePaymentConfig} from \"@bejibun/x402/types\";\nimport X402 from \"@bejibun/x402\";\n\n/**\n * setFacilitator(config?: TFacilitator)\n * \n * setRoutePayment(config?: TRoutePaymentConfig)\n * \n * setRequest(request: Bun.BunRequest) // Mandatory for request headers\n */\nreturn await X402\n    .setFacilitator()\n    .setRoutePayment()\n    .setRequest(request)\n    .middleware(async () => {\n        // your paid resource here\n    });\n```\n\n## ☕ Support / Donate\n\nIf you find this project helpful and want to support it:\n\n[![Donate](https://img.shields.io/badge/Donate-Support%20Me-orange?style=for-the-badge)](https://donate.bejibun.com)\n\nOr you can buy this `$BJBN (Bejibun)` tokens [here](https://pump.fun/coin/CQhbNnCGKfDaKXt8uE61i5DrBYJV7NPsCDD9vQgypump).","readmeFilename":"README.md"}