{"_id":"@bit-gpt/h402-axios","_rev":"8-b89eb331327f7b23b39770aefc873c82","name":"@bit-gpt/h402-axios","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.1":{"name":"@bit-gpt/h402-axios","version":"0.0.1","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-axios@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":"250cb7db3baf4fa308ac73a8a8db88ac54da8d80","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.1.tgz","fileCount":9,"integrity":"sha512-/WoqutkUSqV3R7qXzmic2ON7a2HB2G+DzGwoQsbaDIYxPsofGgPtYjDu9DnhCoSMKoAkS0myWkC3UMGPfKlgog==","signatures":[{"sig":"MEUCIQDgGffHi74/+FL6nSWuCuh+xlalBR/Tl54vk5ONIR4ExQIgPDN8OeYjM/n6P8RGN9cT3+1jxpBo2vRL6B9eMw2sP+k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26877},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-axios-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/acfae848c6912d3ebbe3712b7ad7f9fa/bit-gpt-h402-axios-0.0.1.tgz","_integrity":"sha512-/WoqutkUSqV3R7qXzmic2ON7a2HB2G+DzGwoQsbaDIYxPsofGgPtYjDu9DnhCoSMKoAkS0myWkC3UMGPfKlgog==","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.23.1","axios":"^1.7.9","@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-axios_0.0.1_1751830866358_0.6274143357609792","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@bit-gpt/h402-axios","version":"0.0.2","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-axios@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":"6b644f963806a0170ef88b88a4d1920cf696e9eb","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.2.tgz","fileCount":9,"integrity":"sha512-uonaCA9pyus6XouYIkqnd4T5kIOetrlPW+YDdGN5Bz8EILlfm8IZKt+8G22ufBbPccWtqFd4xHeNCMTU8YSZVA==","signatures":[{"sig":"MEYCIQD0+9xWuBioWH2313346ejWkXY7jgeDx4hdGSpAeH/AIQIhAMpnG+gVtYmlGfkDY1+uRAvmjsshdC9LBeWSSZpoZhR4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26877},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-axios-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/ff70586eb16c7663619e80bdadd7893a/bit-gpt-h402-axios-0.0.2.tgz","_integrity":"sha512-uonaCA9pyus6XouYIkqnd4T5kIOetrlPW+YDdGN5Bz8EILlfm8IZKt+8G22ufBbPccWtqFd4xHeNCMTU8YSZVA==","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.23.1","axios":"^1.7.9","@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-axios_0.0.2_1755095384217_0.2663020114953083","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@bit-gpt/h402-axios","version":"0.0.3","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-axios@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":"0befe9d26d19f3ccf068385750e6f300d70a14ce","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.3.tgz","fileCount":9,"integrity":"sha512-NTL5Nav6t3PdYsopVcI2EbRWKlh0HSQx1UgrQiK4V+kQVg5+6sH/GrI3wu2tihAMKJWUyI7RshkSgULRJURI8A==","signatures":[{"sig":"MEYCIQCkBwG7Un/AtJyyVbBj4xV99lOnIEZ+7IxDlXh+4IvkiQIhANfp6RczsKgDbT8HXsAPlm3MM1vx8GPpMHWsH9lgn4/7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26877},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-axios-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/21ae289bf5afd3a51f47753413b9d11c/bit-gpt-h402-axios-0.0.3.tgz","_integrity":"sha512-NTL5Nav6t3PdYsopVcI2EbRWKlh0HSQx1UgrQiK4V+kQVg5+6sH/GrI3wu2tihAMKJWUyI7RshkSgULRJURI8A==","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.23.1","axios":"^1.7.9","@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-axios_0.0.3_1757528388000_0.8487093252710174","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@bit-gpt/h402-axios","version":"0.0.4","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-axios@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":"47aeab3a538993b9831cd88f2071e9e0d41ab1a6","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.4.tgz","fileCount":9,"integrity":"sha512-e1GKtCu5oz5d+rkoK2YEjBaQP+horWLFqV30RDk2QX9DmKzN3JC4Kgk12RaxrDvmtsUhWjgEwTZyJq9lPPuHVA==","signatures":[{"sig":"MEUCIHzzGq2JA80yn+VBzsnYJnSZzRMz8yHX4RnVfxMsXJIeAiEA4pWsUNc2YaTt1xYsDz8PXcmgNCAUrwWstvBSfyH89Kk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26877},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-axios-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/f8316d7dab195e4ec79a986a8930781a/bit-gpt-h402-axios-0.0.4.tgz","_integrity":"sha512-e1GKtCu5oz5d+rkoK2YEjBaQP+horWLFqV30RDk2QX9DmKzN3JC4Kgk12RaxrDvmtsUhWjgEwTZyJq9lPPuHVA==","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.23.1","axios":"^1.7.9","@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-axios_0.0.4_1759840871324_0.24086965056417142","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@bit-gpt/h402-axios","version":"0.0.5","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-axios@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":"c868a97bca931a485f808797ca927243f6531700","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.5.tgz","fileCount":9,"integrity":"sha512-tlyXz6PRvvQk6WeddlO6TZUQGRbaVmVx6J2UUUr56yfUd6iw6ttZo+epaEVGuW7oN7PeeqHzjQLx2S/iAwoFvQ==","signatures":[{"sig":"MEYCIQCj0874q8ujh4jSqWoS9rEjWopAAP8NZDKfb3n3AxkNDAIhAOrfznXfKnXBhZFUuUxK0nwW10d9+sOJ86lu4HahPFwP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26877},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-axios-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/4e2f7adefc3952bc4eb96cd379caafb4/bit-gpt-h402-axios-0.0.5.tgz","_integrity":"sha512-tlyXz6PRvvQk6WeddlO6TZUQGRbaVmVx6J2UUUr56yfUd6iw6ttZo+epaEVGuW7oN7PeeqHzjQLx2S/iAwoFvQ==","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.23.1","axios":"^1.7.9","@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-axios_0.0.5_1760365264761_0.2922215731649065","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@bit-gpt/h402-axios","version":"0.0.6","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-axios@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":"4a9219acb92c5b5cd97d332684b6d4755856dbc6","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.6.tgz","fileCount":9,"integrity":"sha512-8f83xC4yrAkUe+S4YgG/kF1aTLE25cUX5BOy/TadzQGVT4R6/SJsiDMG5i1M0aPSfTGEwb02I0U3u0MWU8I+yQ==","signatures":[{"sig":"MEQCIECN5ZTN2Dgp0RrnV03/qMoOQ0EUWxo/1wQTZjo2CFrKAiB+x4bv2mXeLDNN2bsbVDKgaVfrQJ+bm+dSzsI0xNQbpw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26877},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-axios-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/91d0d5b608ee239c2196fcd8f02d9595/bit-gpt-h402-axios-0.0.6.tgz","_integrity":"sha512-8f83xC4yrAkUe+S4YgG/kF1aTLE25cUX5BOy/TadzQGVT4R6/SJsiDMG5i1M0aPSfTGEwb02I0U3u0MWU8I+yQ==","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.23.1","axios":"^1.7.9","@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-axios_0.0.6_1760457728366_0.9880281230606476","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@bit-gpt/h402-axios","version":"0.0.7","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-axios@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":"7a1e79534cd7430b0e880ec0fd452ae76d34a075","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.7.tgz","fileCount":9,"integrity":"sha512-afS5R24O+R985F3k1n8ONIz0/HkoTl19UhWSiPPdMJFs5ObFzRn9uH+AS9r8z+r8VSTuldbEcYblvHnlW/cXIw==","signatures":[{"sig":"MEQCIEiu57i0FP82SCjZcDiYdl4Kucoq1clJbpOXdYXkPWzDAiAr6O+xtTe2jvO0s+5vRR2LtCgMpf6mlfKxBajqk2LH2Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27356},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-axios-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/9a007dc06c33fb46df5781895a5210f1/bit-gpt-h402-axios-0.0.7.tgz","_integrity":"sha512-afS5R24O+R985F3k1n8ONIz0/HkoTl19UhWSiPPdMJFs5ObFzRn9uH+AS9r8z+r8VSTuldbEcYblvHnlW/cXIw==","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.23.1","axios":"^1.7.9","@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-axios_0.0.7_1761488853472_0.8394726251452722","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@bit-gpt/h402-axios","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":{"@eslint/js":"^9.24.0","@types/node":"^22.13.4","@typescript-eslint/eslint-plugin":"^8.29.1","@typescript-eslint/parser":"^8.29.1","eslint":"^9.24.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.6","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":{"axios":"^1.7.9","viem":"^2.23.1","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-axios@0.0.8","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"homepage":"https://github.com/bit-gpt/h402#readme","_integrity":"sha512-ledw4i7K+gyJVqzxeqofUq6q3VmtSV9K4z2N/gQ2OMzAmKguKNG5eopWM8dA/N3cF1MIUO12sT8BIY16Q0L2ZQ==","_resolved":"/tmp/4a28c2c2e4d9b2a07c7845c135cf7b40/bit-gpt-h402-axios-0.0.8.tgz","_from":"file:bit-gpt-h402-axios-0.0.8.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-ledw4i7K+gyJVqzxeqofUq6q3VmtSV9K4z2N/gQ2OMzAmKguKNG5eopWM8dA/N3cF1MIUO12sT8BIY16Q0L2ZQ==","shasum":"03a232a1de8995aaf05f6fe54527a0f978f2e729","tarball":"https://registry.npmjs.org/@bit-gpt/h402-axios/-/h402-axios-0.0.8.tgz","fileCount":9,"unpackedSize":29551,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD3Lk/gufmjueXvouoRAOz5k7qY75gOL3g0ZZdCkbLR1wIgVAQtBCyhTUhQp2g0iW9u73OIrdJz8dvFpb9LyCKy0wc="}]},"_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-axios_0.0.8_1762447488873_0.05338310956114456"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-06T19:41:06.154Z","modified":"2025-11-06T16:44:49.258Z","0.0.1":"2025-07-06T19:41:06.536Z","0.0.2":"2025-08-13T14:29:44.397Z","0.0.3":"2025-09-10T18:19:48.183Z","0.0.4":"2025-10-07T12:41:11.489Z","0.0.5":"2025-10-13T14:21:04.939Z","0.0.6":"2025-10-14T16:02:08.553Z","0.0.7":"2025-10-26T14:27:33.675Z","0.0.8":"2025-11-06T16:44:49.057Z"},"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-axios\n\nA utility package that extends Axios 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 with Axios.\n\n## Installation\n\n```bash\nnpm install @bit-gpt/h402-axios\n```\n\n## Quick Start\n\n### EVM (Base) Example\n\n```typescript\nimport { withPaymentInterceptor, createEvmClient } from \"h402-axios\";\nimport axios from \"axios\";\nimport { base } from \"viem/chains\";\n\n// Create an EVM client\nconst evmClient = createEvmClient(evmPrivateKey, base);\n\n// Create an Axios instance with payment handling\nconst api = withPaymentInterceptor(\n  axios.create({\n    baseURL: \"https://api.example.com\",\n  }),\n  { evmClient }\n);\n\n// Make a request that may require payment\nconst response = await api.get(\"/paid-endpoint\");\nconsole.log(response.data);\n```\n\n### Solana Example\n\n```typescript\nimport { withPaymentInterceptor, createSolanaClient } from \"h402-axios\";\nimport axios from \"axios\";\n\n// Create a Solana client\nconst solanaClient = createSolanaClient(\"YourPrivateKey\");\n\n// Create an Axios instance with payment handling\nconst api = withPaymentInterceptor(\n  axios.create({\n    baseURL: \"https://api.example.com\",\n  }),\n  { solanaClient }\n);\n\n// Make a request that may require payment\nconst response = await api.get(\"/paid-endpoint\");\nconsole.log(response.data);\n```\n\n### Arkade Example\n\n```typescript\nimport { withPaymentInterceptor, createArkadeClient } from \"h402-axios\";\nimport axios from \"axios\";\n\n// Create a Arkade client\nconst arkadeClient = createArkadeClient(\"YourPrivateKey\");\n\n// Create an Axios instance with payment handling\nconst api = withPaymentInterceptor(\n  axios.create({\n    baseURL: \"https://api.example.com\",\n  }),\n  { arkadeClient }\n);\n\n// Make a request that may require payment\nconst response = await api.get(\"/paid-endpoint\");\nconsole.log(response.data);\n```\n\n### Multi-Chain Support\n\n```typescript\nimport { withPaymentInterceptor } from \"h402-axios\";\nimport axios from \"axios\";\n\n// Support both EVM and Solana payments\nconst api = withPaymentInterceptor(\n  axios.create({\n    baseURL: \"https://api.example.com\",\n  }),\n  { \n    evmClient: yourEvmClient,\n    solanaClient: yourSolanaClient,\n    arkadeClient: yourArkadeClient\n  }\n);\n\n// The interceptor will automatically choose the best payment method\n// based on available options and stablecoin preferences\nconst response = await api.get(\"/paid-endpoint\");\n```\n\n## Features\n\n- Automatic handling of 402 Payment Required responses\n- Support for BSC (Binance Smart Chain), Solana blockchains and Bitcoin Arkade\n- Intelligent payment method selection with stablecoin prioritization\n- Automatic retry of requests with payment headers\n- Payment verification and header generation\n- Exposes payment response headers\n- Customizable payment requirements selection\n\n## API\n\n### `withPaymentInterceptor(axiosClient, paymentClient, paymentRequirementsSelector?)`\n\nAdds a response interceptor to an Axios instance to handle 402 Payment Required responses automatically.\n\n#### Parameters\n\n- `axiosClient`: The Axios instance to add the interceptor to\n- `paymentClient`: An object containing wallet clients for different blockchains:\n  - `evmClient?`: EVM wallet client (viem WalletClient) for BSC\n  - `solanaClient?`: Solana wallet client\n  - `arkadeClient?`: Arkade wallet client\n- `paymentRequirementsSelector?`: Optional function to customize payment requirements selection (defaults to `selectPaymentRequirements`)\n\n#### Returns\n\nThe modified Axios instance with the payment interceptor that will:\n1. Intercept 402 responses\n2. Parse the payment requirements\n3. Select the best payment option based on available clients and preferences\n4. Create a payment header using the appropriate wallet client\n5. Retry the original request with the payment header\n6. Expose the X-PAYMENT-RESPONSE header in the final response\n\n#### Payment Selection Logic\n\nWhen multiple payment options are available, the interceptor prioritizes:\n1. **Namespace compatibility**: Matches available wallet clients (EVM vs Solana vs Arkade)\n2. **Stablecoin preference**: Prioritizes USDT/USDC over native tokens (BNB/SOL)\n3. **Network compatibility**: Ensures the payment network matches your wallet configuration (BSC for EVM, Solana and Bitcoin for Arkade)\n\n## Additional Exports\n\n### `decodeXPaymentResponse`\n\nUtility function to decode payment response data from the X-PAYMENT-RESPONSE header.\n\n```typescript\nimport { decodeXPaymentResponse } from \"h402-axios\";\n\n// After a successful payment, decode the response\nconst paymentData = decodeXPaymentResponse(response.headers['x-payment-response']);\n","readmeFilename":"README.md"}