{"_id":"@bit-gpt/h402-fetch","_rev":"8-9760f702ef62c1cd156a5b51c70a3c5e","name":"@bit-gpt/h402-fetch","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.1":{"name":"@bit-gpt/h402-fetch","version":"0.0.1","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-fetch@0.0.1","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"fa664dcd3ea147dfbcabb1d3a52a231c67c938e9","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.1.tgz","fileCount":9,"integrity":"sha512-6FQFVM3aWkPqv2/Y4TGKKSV5JlgwgpYY6EqNVT2u9nqRxNZVlH0B2ltRX7UV1pkZQMR64N4PlST8pNjO/o5oYw==","signatures":[{"sig":"MEYCIQCfOahWg2PahjvVp3GZ8BvgLIQKriUz8dGnMZ7ATcRJ0AIhAL0pYGYVr8CTMIQCNJR/1SwMqjc+5oGKFo99ZlE1IsJe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24596},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-fetch-0.0.1.tgz","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"}}},"scripts":{"lint":"eslint . --ext .ts --fix","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","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","actor":{"name":"bit-gpt","type":"user","email":"dan@bitgpt.xyz"},"email":"dan@bitgpt.xyz"},"_resolved":"/tmp/7a0432c2577a464d6b9a7a7282e772a0/bit-gpt-h402-fetch-0.0.1.tgz","_integrity":"sha512-6FQFVM3aWkPqv2/Y4TGKKSV5JlgwgpYY6EqNVT2u9nqRxNZVlH0B2ltRX7UV1pkZQMR64N4PlST8pNjO/o5oYw==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"11.4.2","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@bit-gpt/h402":"^0.0.15"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","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/h402-fetch_0.0.1_1751809876864_0.41698592994292816","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@bit-gpt/h402-fetch","version":"0.0.2","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-fetch@0.0.2","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"d656d470faf4553093c93af20fd341f7ca077de1","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.2.tgz","fileCount":9,"integrity":"sha512-dQu3r3yXL5o+2z4yPszkhY/GoRiBPBKnBV17B5FH5bWwlV+/X1aEJ51fk9Z7L80NAaQGXsucwOmJ+gcamzujXw==","signatures":[{"sig":"MEUCIBUQqF4bkV0VGSobR6XVkX2Cx2v2iFfjGEYi7Hbr07zJAiEAkZcEqKxC35DZlspPAQEd/12XqTSZf++zLdCr8QXjck4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24605},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-fetch-0.0.2.tgz","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"}}},"scripts":{"lint":"eslint . --ext .ts --fix","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","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/c7521c48f2802346c9686dd40cc000de/bit-gpt-h402-fetch-0.0.2.tgz","_integrity":"sha512-dQu3r3yXL5o+2z4yPszkhY/GoRiBPBKnBV17B5FH5bWwlV+/X1aEJ51fk9Z7L80NAaQGXsucwOmJ+gcamzujXw==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.18.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@bit-gpt/h402":"^0.0.16"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","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/h402-fetch_0.0.2_1755095386148_0.120618815441206","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@bit-gpt/h402-fetch","version":"0.0.3","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-fetch@0.0.3","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"56d5633da99b9f796372d7768f284e32f45034df","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.3.tgz","fileCount":9,"integrity":"sha512-mhm4cnLIIL+FH+kwwFXrGVoPRjdTv34N+4J6RA9tUg7yaHSQ7+J44p7L6cz1+7cTDYry8vnh3KiLlw8FlNLgbw==","signatures":[{"sig":"MEQCICecuV4j48IiGKo86lXtHr+akQwdLV/aC9/nWx/1OnQ2AiBfURxpXZv3ze3ajP8SRnOtSyjBNSUbP1emUCJrRHHRBw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24605},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-fetch-0.0.3.tgz","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"}}},"scripts":{"lint":"eslint . --ext .ts --fix","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","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/3b9b06b2c5af49d02d6ca2d7cc41f6d8/bit-gpt-h402-fetch-0.0.3.tgz","_integrity":"sha512-mhm4cnLIIL+FH+kwwFXrGVoPRjdTv34N+4J6RA9tUg7yaHSQ7+J44p7L6cz1+7cTDYry8vnh3KiLlw8FlNLgbw==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@bit-gpt/h402":"^0.0.17"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","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/h402-fetch_0.0.3_1757528386334_0.8157750340638137","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@bit-gpt/h402-fetch","version":"0.0.4","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-fetch@0.0.4","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"38a1ed758a0544621e5a3aa876945af220fc4b52","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.4.tgz","fileCount":9,"integrity":"sha512-dulV0Xw4vwkiCFFG5bQuxS567IVFProEJJUupaf56QTJlb0z0u3XyIk/DH24CAZ+W0C52a0e/C/uRK9HLwoJOA==","signatures":[{"sig":"MEUCIDNbBweSs648c0ntvRd2eI4DxOyFnxDKVCnzdMt4PVeFAiEAjtQp3MEKBziuZtqQobzvKcUwNeWQGucqbu15vPCx23I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24605},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-fetch-0.0.4.tgz","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"}}},"scripts":{"lint":"eslint . --ext .ts --fix","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","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/f150454f1c4c4e818dd4223162525b18/bit-gpt-h402-fetch-0.0.4.tgz","_integrity":"sha512-dulV0Xw4vwkiCFFG5bQuxS567IVFProEJJUupaf56QTJlb0z0u3XyIk/DH24CAZ+W0C52a0e/C/uRK9HLwoJOA==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@bit-gpt/h402":"^0.0.18"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","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/h402-fetch_0.0.4_1759840854926_0.5812946232961826","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@bit-gpt/h402-fetch","version":"0.0.5","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-fetch@0.0.5","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"918088768c8f1894dcce2ee779f847a754af2cad","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.5.tgz","fileCount":9,"integrity":"sha512-qIvupGiaUBH/Vm2pLO774dtikipmPXRs7FjMHXkVh0J6qJK/X0d07mcc8/g+sccHi69D1ZTZv7/lTgb9y44+tw==","signatures":[{"sig":"MEUCIA3gXqfPHCKm534/pHDmYtU2SN5oWvIGU1aqRH7x/7AtAiEA2YYhzafENxJcm9J69KNtAo0OfRbn3xBMKU0OfUdUNe8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24605},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-fetch-0.0.5.tgz","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"}}},"scripts":{"lint":"eslint . --ext .ts --fix","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","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/174acf2fb659d584fd3d8f156577b4e5/bit-gpt-h402-fetch-0.0.5.tgz","_integrity":"sha512-qIvupGiaUBH/Vm2pLO774dtikipmPXRs7FjMHXkVh0J6qJK/X0d07mcc8/g+sccHi69D1ZTZv7/lTgb9y44+tw==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@bit-gpt/h402":"^0.0.19"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","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/h402-fetch_0.0.5_1760365305483_0.708767723452504","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@bit-gpt/h402-fetch","version":"0.0.6","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-fetch@0.0.6","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"0f3682e8c57217db9ea3dfb997b5fac30b2f0982","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.6.tgz","fileCount":9,"integrity":"sha512-5nq2BPfSZGq91QIoFk5XszxS3Q+4BflnQXH3Cbbgp38wWOoKk3UV/do7XOGDZQjXJLx6ThObPEDp4QA5GqYT9Q==","signatures":[{"sig":"MEQCIFKTHJSqXuzf3pxiD1q86vWAdmFNqfs6Rnj0rj06YCanAiBd4nAw8bdaGIDEyOsFUKVQ0/a5aT2aNT+3womHbGfxVw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24605},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-fetch-0.0.6.tgz","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"}}},"scripts":{"lint":"eslint . --ext .ts --fix","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","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/c787761481ebbae2cde15290f9524258/bit-gpt-h402-fetch-0.0.6.tgz","_integrity":"sha512-5nq2BPfSZGq91QIoFk5XszxS3Q+4BflnQXH3Cbbgp38wWOoKk3UV/do7XOGDZQjXJLx6ThObPEDp4QA5GqYT9Q==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@bit-gpt/h402":"^0.0.20"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","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/h402-fetch_0.0.6_1760457715468_0.7604370850737165","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@bit-gpt/h402-fetch","version":"0.0.7","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-fetch@0.0.7","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"0e673f7cdc7320cbb5d6014bd9037f6731429bb3","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.7.tgz","fileCount":9,"integrity":"sha512-kdxeIfE2GpQ+PksETe6nW5edml0bchmLoaY72CL+uRrIPhdKnnqJsHLIRbLMIeJNBlbYl/oNKlk9Qa+3dHFwCQ==","signatures":[{"sig":"MEYCIQDJMXk9wkqSrqALsQWaqjvycUsJNom6jPGYPqcEd+SCJAIhAOUp8ftcetdSBX2pbA9ZiicbGdopda2SN/ktgNHIYt8+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25084},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-fetch-0.0.7.tgz","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"}}},"scripts":{"lint":"eslint . --ext .ts --fix","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","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/2ea1a6c44413fd75ba7240262558822e/bit-gpt-h402-fetch-0.0.7.tgz","_integrity":"sha512-kdxeIfE2GpQ+PksETe6nW5edml0bchmLoaY72CL+uRrIPhdKnnqJsHLIRbLMIeJNBlbYl/oNKlk9Qa+3dHFwCQ==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.4","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.21.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@bit-gpt/h402":"^0.0.21"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","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/h402-fetch_0.0.7_1761488887130_0.27249446223858365","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@bit-gpt/h402-fetch","version":"0.0.8","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/index.d.ts","keywords":[],"license":"Apache-2.0","author":{"name":"BitGPT"},"repository":{"type":"git","url":"git+https://github.com/bit-gpt/h402.git"},"description":"h402 Payment Protocol","devDependencies":{"@types/node":"^22.13.4","@eslint/js":"^9.24.0","eslint":"^9.24.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/eslint-plugin":"^8.29.1","@typescript-eslint/parser":"^8.29.1","eslint-plugin-import":"^2.31.0","prettier":"3.5.2","tsup":"^8.4.0","tsx":"^4.19.2","typescript":"^5.7.3","vite-tsconfig-paths":"^5.1.4","vite":"^6.2.6"},"dependencies":{"viem":"^2.21.26","zod":"^3.24.2","@bit-gpt/h402":"^0.0.22"},"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":{"start":"tsx --env-file=.env index.ts","build":"tsup","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\"","lint":"eslint . --ext .ts --fix","lint:check":"eslint . --ext .ts"},"_id":"@bit-gpt/h402-fetch@0.0.8","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"homepage":"https://github.com/bit-gpt/h402#readme","_integrity":"sha512-b5H4UGU6Br6DbGBQlUmOXMq8ueGyANa1FgQfit7nvIiOZJuIjdn5Uwt10R6z2tazE5yQHPH+XyklmRIc1iyeow==","_resolved":"/tmp/330174ca222468301412fe5658ead532/bit-gpt-h402-fetch-0.0.8.tgz","_from":"file:bit-gpt-h402-fetch-0.0.8.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-b5H4UGU6Br6DbGBQlUmOXMq8ueGyANa1FgQfit7nvIiOZJuIjdn5Uwt10R6z2tazE5yQHPH+XyklmRIc1iyeow==","shasum":"ae9719237b23760ed4033900eda4f1737acba9d1","tarball":"https://registry.npmjs.org/@bit-gpt/h402-fetch/-/h402-fetch-0.0.8.tgz","fileCount":9,"unpackedSize":27515,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCgTDgWpcwfZ/SVpgtxANZTaRN+5B50CgJDPo4qapnrJQIhAMG8qDIqQrehES41cDF5tMLhPDCWkQrHUfUIKbuKlwO5"}]},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"directories":{},"maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/h402-fetch_0.0.8_1762447491942_0.2481795170843588"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-06T13:51:16.793Z","modified":"2025-11-06T16:44:52.346Z","0.0.1":"2025-07-06T13:51:17.038Z","0.0.2":"2025-08-13T14:29:46.337Z","0.0.3":"2025-09-10T18:19:46.518Z","0.0.4":"2025-10-07T12:40:55.125Z","0.0.5":"2025-10-13T14:21:45.666Z","0.0.6":"2025-10-14T16:01:55.651Z","0.0.7":"2025-10-26T14:28:07.320Z","0.0.8":"2025-11-06T16:44:52.152Z"},"bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"author":{"name":"BitGPT"},"license":"Apache-2.0","homepage":"https://github.com/bit-gpt/h402#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bit-gpt/h402.git"},"description":"h402 Payment Protocol","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"readme":"# h402-fetch\n\nA utility package that extends the native `fetch` API to automatically handle 402 Payment Required responses using the h402 payment protocol. This package enables seamless integration of payment functionality into your applications when making HTTP requests.\n\n## Installation\n\n```bash\nnpm install @bit-gpt/h402-fetch\n```\n\n## Quick Start\n\n### EVM (Base) Example\n\n```typescript\nimport { wrapFetchWithPayment, createEvmClient } from \"h402-fetch\";\nimport { base } from \"viem/chains\";\n\n// Create an EVM client\nconst evmClient = createEvmClient(evmPrivateKey, base);\n\n// Wrap the fetch function with payment handling\nconst fetchWithPay = wrapFetchWithPayment(fetch, { evmClient });\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## Solana Example\n\n```typescript\nimport { wrapFetchWithPayment, createSolanaClient } from \"h402-fetch\";\n\n// Create a Solana client\nconst solanaClient = createSolanaClient(\"YourPrivateKey\");\n\n// Wrap the fetch function with payment handling\nconst fetchWithPay = wrapFetchWithPayment(fetch, { solanaClient });\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### Arkade Example\n\n```typescript\nimport { wrapFetchWithPayment, createArkadeClient } from \"h402-fetch\";\n\n// Create a Arkade client\nconst arkadeClient = createArkadeClient(\"YourPrivateKey\");\n\n// Wrap the fetch function with payment handling\nconst fetchWithPay = wrapFetchWithPayment(fetch, { arkadeClient });\n\n// Make a request that may require payment\nconst response = await fetchWithPay(\"https://api.example.com/paid-endpoint\", {\n  method: \"GET\",\n});\n```\n\n## API\n\n### `wrapFetchWithPayment(fetch, walletClient, maxValue?, paymentRequirementsSelector?)`\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 for EVM, Solana and 0.00001 BTC for Arkade)\n- `paymentRequirementsSelector`: Optional function to select payment requirements from the response (defaults to `selectPaymentRequirements`)\n\n#### Returns\n\nA wrapped fetch function that automatically handles 402 responses by:\n\n1. Making the initial request\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","readmeFilename":"README.md"}