{"_id":"@b3dotfun/anyspend-x402-fetch","_rev":"9-74521cb1b15b047d18e2264325ae2f77","name":"@b3dotfun/anyspend-x402-fetch","dist-tags":{"latest":"0.2.5"},"versions":{"0.1.0":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.1.0","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.1.0","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"f6cd41dbbbba82c2e9c3f4fc9da4b7add3964cda","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.1.0.tgz","fileCount":8,"integrity":"sha512-9wtA5k7oBX0v14aX6FemtodPQQ7spwBB5oxry0V5u8GkwdyOGjiDSAo1wbv/m6aZ/fI9hO5i5uQBAbgs0C4qMQ==","signatures":[{"sig":"MEUCIQCjAZAtxzxQENuSO1PqMRwtPduLzSPk0+YoG1PksMvLYQIgTDpTH7ii98jZkvdfOwPgAiFYWLcea4WcHd8hTXuMgvE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37640},"main":"./dist/cjs/index.js","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"gitHead":"e899ec45743b083a10d656363d3a1b4459e065e0","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","x402":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.1.0_1761927900620_0.034040294050382336","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.1.1","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.1.1","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"23804cecd8634738e4366b496fc253e5edccaa68","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.1.1.tgz","fileCount":8,"integrity":"sha512-qh7oMGzZJq+lXs+HD3c0mx0MeSRobPW5QMOmK8hK0G5a+WRRdd8E/P/qOH+Px2Fjw1c8UUJGOPOT0wn86WaJ9Q==","signatures":[{"sig":"MEQCIB3AcWwDT3ExhBpvH/12MNBNg5yQxJPlbs1FK1yd2ZrAAiBV8pz9EZtXdAdMmYoTxq3sEm9+STyR8CHi6UEaYhhurQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37341},"main":"./dist/cjs/index.js","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"gitHead":"7de092106a05a9519beaa35a15199441ba1e4da6","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@b3dotfun/anyspend-x402":"^0.1.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.1.1_1761929687495_0.5591064783627859","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.2.0","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.2.0","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"163d4a0be14bd069ecf2d0913b25d962cc7fe57e","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.2.0.tgz","fileCount":7,"integrity":"sha512-iGsDeQjI3HZ02tNbKNoNbdYK0wNedCMUv6wgcqrihGguM4pVhUwzWkVlyNXw2HDwEG1Ednz3Rc3tASf763nj/A==","signatures":[{"sig":"MEUCIQCAVpxR20Rc2KmLcDdNBbYhF/rgIihDH9XZlXhz5/KIywIgTkhw1PSkAJ0BVB6RdgzUK7850xjh7HTf+K96BNPHNJc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33901},"main":"./dist/cjs/index.js","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js"}},"gitHead":"7de092106a05a9519beaa35a15199441ba1e4da6","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@b3dotfun/anyspend-x402":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.2.0_1761931872664_0.04872039860524069","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.2.1","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.2.1","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"b1abf4ee83085c642e8e8035b29f8875615993a7","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.2.1.tgz","fileCount":8,"integrity":"sha512-yVLlX2MChyeVpc1CU1tM+dmFW8iIBfH01nmUmUmbvDvKfmDr49bnOKDXYkbcEFnCNKzhjMOFa0N3XjrciRVOqA==","signatures":[{"sig":"MEYCIQCX+Iuj//OTlmwRCurbhn6pi1pgMLc/lbI7lcrMus9BrQIhANIG++D/70P2u50ahO/igK0D6fArdrfxm+AOOYNoxUAs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38195},"main":"./dist/cjs/index.js","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"gitHead":"7de092106a05a9519beaa35a15199441ba1e4da6","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@b3dotfun/anyspend-x402":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.2.1_1761942590453_0.8762042502857961","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.2.2","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.2.2","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"a197fc189db16dc8fc535101817b5cc2df1bec81","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.2.2.tgz","fileCount":8,"integrity":"sha512-ngImKvhxZ92iznxwhOKwhs5zsBxDF1PHWQ0b834mVpX7xd1oWXnmiTIj3sMlgtYDHSTdv9mm349Zu/cx2BNOoQ==","signatures":[{"sig":"MEUCIFtaTUuFtfULNpoe6xY0IQdmVc8AKKUwtGeu0xKgClpRAiEA76w521obzfMiq8I4eZq0mq7dfLvi68tvMZWdE81NUOk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38189},"main":"./dist/cjs/index.js","_from":"file:b3dotfun-anyspend-x402-fetch-0.2.2.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"_resolved":"/private/var/folders/3h/t371gs6d3gj5fknk2x2qqs0h0000gn/T/927a9afe1720dc5bbf7e3456f6c68c32/b3dotfun-anyspend-x402-fetch-0.2.2.tgz","_integrity":"sha512-ngImKvhxZ92iznxwhOKwhs5zsBxDF1PHWQ0b834mVpX7xd1oWXnmiTIj3sMlgtYDHSTdv9mm349Zu/cx2BNOoQ==","repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@b3dotfun/anyspend-x402":"^0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.2.2_1761943641999_0.9649622181320618","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.2.3","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.2.3","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"0a2abf4a8202b81b9b3f24bdea756ef9befc71f3","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.2.3.tgz","fileCount":8,"integrity":"sha512-rDRYxVev4/8Xvy8FHHS6JxkXCU5fnq3dYtwuVFFC4kLE+CyzCtldrEicR2XdYGj1Texb+BTOaW/MhX6QoEE/PA==","signatures":[{"sig":"MEYCIQCGl0P3bYBL1sctxlyU4XiyJmxvLZWhjd9dMwmKLH4OfgIhAI8j0hXoW6aJDgGbuhdZS6eXtkhq2EL6B+MJvsmqpaJy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38189},"main":"./dist/cjs/index.js","_from":"file:b3dotfun-anyspend-x402-fetch-0.2.3.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"_resolved":"/private/var/folders/3h/t371gs6d3gj5fknk2x2qqs0h0000gn/T/5866a4eef0378f6eece65d4a0d38d5f7/b3dotfun-anyspend-x402-fetch-0.2.3.tgz","_integrity":"sha512-rDRYxVev4/8Xvy8FHHS6JxkXCU5fnq3dYtwuVFFC4kLE+CyzCtldrEicR2XdYGj1Texb+BTOaW/MhX6QoEE/PA==","repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@b3dotfun/anyspend-x402":"^0.2.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.2.3_1762325093172_0.8819188468673247","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.2.4","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.2.4","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"e3f0c1cb971eda256e8f44a05b64ad0e902b1664","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.2.4.tgz","fileCount":8,"integrity":"sha512-/ykNG/IJli3yOnncAVwAsFQ3C6XAFUk898Gv+hgbPYfuyvIQXZWQX+BOPrWcTQ+RWrf9me3f45Ul0CVWx7tiTg==","signatures":[{"sig":"MEYCIQCQFpqa/0nsKV2MZkzG3N5/+EcxKIyMuNm/KpmksYGRAAIhALyVBBNJ7z9v0u+FoZn4hUAaKgeOBBVvH8H0xj1s2bse","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38189},"main":"./dist/cjs/index.js","_from":"file:b3dotfun-anyspend-x402-fetch-0.2.4.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"_resolved":"/private/var/folders/3h/t371gs6d3gj5fknk2x2qqs0h0000gn/T/0854e557aff4286ee013e017b898ee5c/b3dotfun-anyspend-x402-fetch-0.2.4.tgz","_integrity":"sha512-/ykNG/IJli3yOnncAVwAsFQ3C6XAFUk898Gv+hgbPYfuyvIQXZWQX+BOPrWcTQ+RWrf9me3f45Ul0CVWx7tiTg==","repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@b3dotfun/anyspend-x402":"^0.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.2.4_1762328503456_0.2601490497112775","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@b3dotfun/anyspend-x402-fetch","version":"0.2.5","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-fetch@0.2.5","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"0d368f9105db20ff63db64e836886345d9a5522f","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-fetch/-/anyspend-x402-fetch-0.2.5.tgz","fileCount":8,"integrity":"sha512-idBohN8biV9tN+9x5EvRA4HGgmOCKbGlb3F2WJfmsykqCokxSyYzavz10Me3NAvTS5UYx9nyVGuubYuMH7yVJQ==","signatures":[{"sig":"MEYCIQDaYt4NhrBYP6EPZ+ygg6l/BisWl3B04EquPzWvZ/nkUgIhAKW0TIP5QPtWnDDJIAXdZlaVSVTDvF9jqenKMGBNkzPs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38189},"main":"./dist/cjs/index.js","_from":"file:b3dotfun-anyspend-x402-fetch-0.2.5.tgz","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"_resolved":"/private/var/folders/3h/t371gs6d3gj5fknk2x2qqs0h0000gn/T/0239359a3d5fed4fa55d97b04f672894/b3dotfun-anyspend-x402-fetch-0.2.5.tgz","_integrity":"sha512-idBohN8biV9tN+9x5EvRA4HGgmOCKbGlb3F2WJfmsykqCokxSyYzavz10Me3NAvTS5UYx9nyVGuubYuMH7yVJQ==","repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@b3dotfun/anyspend-x402":"^0.2.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-fetch_0.2.5_1763141585148_0.28072265425118026","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-10-31T16:25:00.542Z","modified":"2026-02-02T15:43:20.505Z","0.1.0":"2025-10-31T16:25:00.805Z","0.1.1":"2025-10-31T16:54:47.672Z","0.2.0":"2025-10-31T17:31:12.861Z","0.2.1":"2025-10-31T20:29:50.652Z","0.2.2":"2025-10-31T20:47:22.228Z","0.2.3":"2025-11-05T06:44:53.346Z","0.2.4":"2025-11-05T07:41:43.636Z","0.2.5":"2025-11-14T17:33:05.327Z"},"bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"author":{"name":"b3-fun"},"license":"Apache-2.0","homepage":"https://github.com/b3-fun/anyspend-x402#readme","keywords":["x402","anyspend","fetch","payment-protocol","web3","payments","cryptocurrency","client"],"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"description":"AnySpend x402 Fetch client - Extended x402 payment protocol integration for native fetch API with multi-token support","maintainers":[{"email":"max@npclabs.org","name":"max-b3"},{"email":"sean@npclabs.org","name":"npclabs"},{"email":"gio@npclabs.org","name":"gionpclabs"},{"email":"davidnguyen@npclabs.org","name":"b3_david"},{"email":"anqtran36@gmail.com","name":"anqt-dev"},{"email":"mitchmyburgh@gmail.com","name":"mitchmyburgh"},{"email":"trung@npclabs.org","name":"trung.npclabs"},{"email":"mike@npclabs.org","name":"mikedutuandu"}],"readme":"# @b3dotfun/anyspend-x402-fetch\n\nAnySpend-enhanced fetch client for the x402 Payment Protocol. This package extends the native `fetch` API to automatically handle 402 Payment Required responses with multi-token and cross-chain payment support through the AnySpend facilitator.\n\n## Installation\n\n```bash\nnpm install @b3dotfun/anyspend-x402-fetch\n```\n\n## Quick Start\n\n```typescript\nimport { createWalletClient, http } from \"viem\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { wrapFetchWithPayment } from \"@b3dotfun/anyspend-x402-fetch\";\nimport { baseSepolia } from \"viem/chains\";\n\n// Create a wallet client\nconst account = privateKeyToAccount(\"0xYourPrivateKey\");\nconst client = createWalletClient({\n  account,\n  transport: http(),\n  chain: baseSepolia,\n});\n\n// Wrap the fetch function with payment handling\nconst fetchWithPay = wrapFetchWithPayment(fetch, client);\n\n// Make a request that may require payment\nconst response = await fetchWithPay(\"https://api.example.com/paid-endpoint\", {\n  method: \"GET\",\n});\n\nconst data = await response.json();\n```\n\n## What Makes AnySpend Different?\n\nUnlike standard x402 implementations, AnySpend x402 enables:\n\n- ✨ **Multi-token payments** - Pay with various ERC-20 tokens, not just USDC\n- 🌉 **Cross-chain payments** - Pay on one network while the server receives on another\n- 🔄 **Automatic conversion** - Token swaps and bridging handled seamlessly by the facilitator\n- 🎯 **Standard compatibility** - Works with standard x402 servers (no custom server code needed)\n\n## API\n\n### `wrapFetchWithPayment(fetch, walletClient, maxValue?, paymentRequirementsSelector?, config?, preferences?)`\n\nWraps the native fetch API to handle 402 Payment Required responses automatically.\n\n#### Parameters\n\n- `fetch`: The fetch function to wrap (typically `globalThis.fetch`)\n- `walletClient`: The wallet client used to sign payment messages (must implement the x402 wallet interface)\n- `maxValue`: Optional maximum allowed payment amount in base units (defaults to 0.1 USDC)\n- `paymentRequirementsSelector`: Optional function to select payment requirements from the response (defaults to `selectPaymentRequirements`)\n- `config`: Optional X402 configuration (e.g., custom RPC URLs)\n- `preferences`: Optional payment preferences to specify preferred token and network\n\n#### Returns\n\nA wrapped fetch function that automatically handles 402 responses by:\n1. Making the initial request (with optional payment preferences)\n2. If a 402 response is received, parsing the payment requirements\n3. Verifying the payment amount is within the allowed maximum\n4. Creating a payment header using the provided wallet client\n5. Retrying the request with the payment header\n\n### Payment Preferences\n\nYou can specify which token and network you want to pay with:\n\n```typescript\nimport { wrapFetchWithPayment, createSigner, type PaymentPreferences } from \"@b3dotfun/anyspend-x402-fetch\";\n\nconst signer = await createSigner(\"base-sepolia\", privateKey);\n\n// Pay with WETH instead of USDC\nconst preferences: PaymentPreferences = {\n  preferredToken: \"0x4200000000000000000000000000000000000006\", // WETH on Base Sepolia\n  preferredNetwork: \"base-sepolia\"\n};\n\nconst fetchWithPayment = wrapFetchWithPayment(\n  fetch,\n  signer,\n  undefined, // maxValue\n  undefined, // paymentRequirementsSelector\n  undefined, // config\n  preferences\n);\n\nawait fetchWithPayment('https://api.example.com/data');\n```\n\n### Supported Networks\n\nAnySpend facilitator supports multiple networks:\n\n- Base / Base Sepolia\n- Ethereum / Ethereum Sepolia\n- Arbitrum / Arbitrum Sepolia\n- Optimism / Optimism Sepolia\n- Polygon / Polygon Amoy\n\n**Primary Settlement Token**: USDC across all supported networks\n\nFor the latest list of supported tokens and networks, query: `https://mainnet.anyspend.com/x402/supported`\n\n## Example\n\n```typescript\nimport { config } from \"dotenv\";\nimport { createWalletClient, http } from \"viem\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { wrapFetchWithPayment } from \"@b3dotfun/anyspend-x402-fetch\";\nimport { baseSepolia } from \"viem/chains\";\n\nconfig();\n\nconst { PRIVATE_KEY, API_URL } = process.env;\n\nconst account = privateKeyToAccount(PRIVATE_KEY as `0x${string}`);\nconst client = createWalletClient({\n  account,\n  transport: http(),\n  chain: baseSepolia,\n});\n\nconst fetchWithPay = wrapFetchWithPayment(fetch, client);\n\n// Make a request to a paid API endpoint\nfetchWithPay(API_URL, {\n  method: \"GET\",\n})\n  .then(async response => {\n    const data = await response.json();\n    console.log(data);\n  })\n  .catch(error => {\n    console.error(error);\n  });\n```\n\n## Related Packages\n\n- [@b3dotfun/anyspend-x402](https://www.npmjs.com/package/@b3dotfun/anyspend-x402) - AnySpend facilitator configuration\n- [@b3dotfun/anyspend-x402-express](https://www.npmjs.com/package/@b3dotfun/anyspend-x402-express) - AnySpend Express middleware\n- [x402](https://www.npmjs.com/package/x402) - Core x402 protocol implementation\n- [x402-express](https://www.npmjs.com/package/x402-express) - Standard Coinbase x402 Express middleware\n- [x402-hono](https://www.npmjs.com/package/x402-hono) - Hono middleware\n- [x402-next](https://www.npmjs.com/package/x402-next) - Next.js middleware\n- [x402-fetch](https://www.npmjs.com/package/x402-fetch) - Standard Coinbase x402 Fetch client\n- [x402-axios](https://www.npmjs.com/package/x402-axios) - Client for Axios\n\n## About x402\n\nThe x402 protocol is an open standard for HTTP-native payments. It enables:\n\n- **Low fees**: No percentage-based fees, just network costs\n- **Instant settlement**: ~2 second finality on supported networks\n- **Micro-payments**: Accept payments as low as $0.001\n- **Chain agnostic**: Works across multiple blockchain networks\n- **Easy integration**: One line of code for servers, one function for clients\n\nLearn more at [x402.org](https://x402.org)\n\n## Resources\n\n- [x402 Protocol](https://x402.org)\n- [AnySpend GitHub](https://github.com/b3-fun/anyspend-x402)\n- [AnySpend Facilitator](https://mainnet.anyspend.com/x402)\n- [CDP Documentation](https://docs.cdp.coinbase.com)\n- [CDP Discord](https://discord.com/invite/cdp)\n\n## License\n\nApache-2.0\n\n## Contributing\n\nContributions are welcome! This is an extended version of the Coinbase x402-fetch client with AnySpend ecosystem integration.\n\n","readmeFilename":"README.md"}