{"_id":"@acedatacloud/x402-client","_rev":"31-c1909c15125d815f9efa211be53dddaa","name":"@acedatacloud/x402-client","dist-tags":{"latest":"2026.804.0"},"versions":{"0.1.0":{"name":"@acedatacloud/x402-client","version":"0.1.0","license":"MIT","_id":"@acedatacloud/x402-client@0.1.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"d1a8f75ee8fff4d964552a5827abf947a3462be3","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-0.1.0.tgz","fileCount":12,"integrity":"sha512-vflQbowOMYTV/DeHaoUKEew4diY/qRna9HnO3g2ond7ZF3E8YgLGRWPaMhdhPt/xn8Q6jsfFkafUsNMZuVT3+A==","signatures":[{"sig":"MEUCIH1WvfkKxX4cIkDqCa1N225nJsfj1SgYmy9N5dSYArdjAiEAtmjFwm62Vv6bpB055FzHA21X8o5QGfNz8zG38ZxxB+E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":19991},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"gitHead":"180991e51634f60c92ec40896907781a3fd63415","scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_0.1.0_1776573015173_0.8087571026643412","host":"s3://npm-registry-packages-npm-production"}},"2026.4.19":{"name":"@acedatacloud/x402-client","version":"2026.4.19","license":"MIT","_id":"@acedatacloud/x402-client@2026.4.19","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"85633d0495a6f4b97020e87c5a90bd4292dbf378","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.4.19.tgz","fileCount":12,"integrity":"sha512-MXik6DSrtT7Oz3ihEOKGUQyl520lh2EJ6PpZs9+9F5cYp8M6oV41tFTzDG05bUl05X85ztf8+S92zhEnC8GdYw==","signatures":[{"sig":"MEUCIHBrLiBO5OY3Q35qJaRpLFzTGEfCepqtzxJKIPqtl+0IAiEA7z+iGVQsOFE+qyu5xXPpf0zb3ssNWDFB+sXS5JNdeec=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.4.19","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22797},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.4.19_1776617406180_0.5298476602082702","host":"s3://npm-registry-packages-npm-production"}},"2026.4.20":{"name":"@acedatacloud/x402-client","version":"2026.4.20","license":"MIT","_id":"@acedatacloud/x402-client@2026.4.20","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"c47de3c8e429c4b2fdf50d5d9d070e8899130f4c","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.4.20.tgz","fileCount":12,"integrity":"sha512-BD518xIO9CBGcRd1bIWjPge3UoY3opXh/TDTqH9ZHgZ3qY8YxoxVHz9/J2MMMJ+LLZhD+VrWDMobhUaWVYN57w==","signatures":[{"sig":"MEQCIC4P4KQO05XR3VnRHIQ5CIKwG2v5B4xD1DMIOlRRSU7SAiAi5XU/4i0hKNclBoQnR9Ek+pJChkliF0YUUTPZdA+H0w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.4.20","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22797},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.4.20_1776705555512_0.518665448437678","host":"s3://npm-registry-packages-npm-production"}},"2026.4.2-0.1":{"name":"@acedatacloud/x402-client","version":"2026.4.2-0.1","license":"MIT","_id":"@acedatacloud/x402-client@2026.4.2-0.1","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"9a39b642f1782f3ced77de188fc40944694f622c","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.4.2-0.1.tgz","fileCount":12,"integrity":"sha512-8cErtvZqgKwgRjBLAV/FAE37yrP7LmAJLVBBTld5w5teCeyLrZf8OVriuvQdIbsQGXACDLZfWdQLCbyIrZwJcQ==","signatures":[{"sig":"MEYCIQCixBSCAkeFKW95DUrhsVVRPZVwbXs5LgVulj4WtWuwDgIhAMmlBfBws1hBTSjcguz1kUdk6Cv/KD0AlfESaGzIXmak","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.4.2-0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22799},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.4.2-0.1_1776705706587_0.6998261271014659","host":"s3://npm-registry-packages-npm-production"}},"2026.420.0":{"name":"@acedatacloud/x402-client","version":"2026.420.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.420.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"228712b2abc672593ede405e577f24bc7753ea07","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.420.0.tgz","fileCount":12,"integrity":"sha512-UCvkOFJH0iG1980GvwZ3Yld7gHJ/35uGjVxiCoTJZaNxnZaasQHZtCaa3PsNWuHqfZhUbbOiZko6Mgabg6S7/g==","signatures":[{"sig":"MEUCIEY4JuUV7ec90o2k1a/booZPJBuSVofrMGAKTQUQf9OFAiEA4o+1KsV/lHARUD3UR/9xJX3qzhJH2FcxJw/Suyn+A2o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.420.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.420.0_1776705742122_0.6104943740078195","host":"s3://npm-registry-packages-npm-production"}},"2026.420.1":{"name":"@acedatacloud/x402-client","version":"2026.420.1","license":"MIT","_id":"@acedatacloud/x402-client@2026.420.1","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"738a7971948d35315b666846f71f65198a93e11f","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.420.1.tgz","fileCount":12,"integrity":"sha512-wPL6vtpsP5E92h9hvgDulhKNEME3xtZ/lNq4xfrYEB1IUq8XU7/jj42mJaITnRUX1icD2FDrrIeaxbF/BIzYqQ==","signatures":[{"sig":"MEUCIQD9lq7utoE3L2blbSsw7dAAhFyX8Tm+ZKyh5IY8aD36ggIgJi834sYCyZzHgJE7BrAJPHseUq82BKU+/aY+4BhSjYY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.420.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.420.1_1776705779967_0.636330044934444","host":"s3://npm-registry-packages-npm-production"}},"2026.420.2":{"name":"@acedatacloud/x402-client","version":"2026.420.2","license":"MIT","_id":"@acedatacloud/x402-client@2026.420.2","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"5dc2bd2e014f976b6f79377338bcb9633239697a","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.420.2.tgz","fileCount":12,"integrity":"sha512-4xV5AZ6ryNT85a4/0KeiS0Y8oIeFOidywltcSB94zwVn9ruZHTNoxcCl+i0UqVC4ZUKcLQpn/wkVoOXE1FcsVg==","signatures":[{"sig":"MEUCIQD2WMTpFVPenTSwiyh4t+VfNNKosLtR/tTzVl0nSnBY6gIgaqzNmEubOSvhOdez7Lp5vdKjIlv4wRsKGym/yA6mXhM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.420.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.420.2_1776705855268_0.8944394030746456","host":"s3://npm-registry-packages-npm-production"}},"2026.420.3":{"name":"@acedatacloud/x402-client","version":"2026.420.3","license":"MIT","_id":"@acedatacloud/x402-client@2026.420.3","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"c666d1801e32ec223e0ff52f9057e6ac4911b38a","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.420.3.tgz","fileCount":12,"integrity":"sha512-l0Gb3LZBTcafnX2o9ZcRRDSJFdF3HevWjOH34tih2EQpF8I3JFDl0GVaJoeE8eEuuQkFG/xun4Ty4OQ1EoHGYQ==","signatures":[{"sig":"MEYCIQCDP725atySjwqhc27IJxDkwEFDNCfcn5hdZsWEoXn5iQIhAPbwDyllac84w3sFvnV9M02bxBWg+NX9wdmSDP+CdpkN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.420.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.420.3_1776705904206_0.06834201998014855","host":"s3://npm-registry-packages-npm-production"}},"2026.420.4":{"name":"@acedatacloud/x402-client","version":"2026.420.4","license":"MIT","_id":"@acedatacloud/x402-client@2026.420.4","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"55ead2ed8f1ca686bae01d28ba820df9afc3bb89","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.420.4.tgz","fileCount":12,"integrity":"sha512-3D4puvF5iHt0k4hgkdCfxnGQlZdNDcjyWTqVElGHifKCCxjPkq2zhUGP5J8UCEQ10BI/UaF2477LpIjwkYToeA==","signatures":[{"sig":"MEQCIE6C8j1gpNBIdmFyLpojNVsI/X5n9M5rjJ/jMU2jffE1AiAIEp2zmYMlGPyxpGQuDSVaIN42MsioQNdUGWhsSswFtA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.420.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.420.4_1776705986306_0.4365741902071403","host":"s3://npm-registry-packages-npm-production"}},"2026.420.5":{"name":"@acedatacloud/x402-client","version":"2026.420.5","license":"MIT","_id":"@acedatacloud/x402-client@2026.420.5","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"3684e60cd5dfa1456c1ee501a1734db28621bf7b","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.420.5.tgz","fileCount":12,"integrity":"sha512-hi3VhS4C340pH33bGKQFKciy+yomawDZL6AIm5xB6Ibg8njuGSpP+ln39QuJwpha6s9YpjfD3Bi3AMjeS4FTsQ==","signatures":[{"sig":"MEQCIEx2UhmBcRgfsN+EcIsSom6cSFWerKw77dkfEfApPb4fAiAeRfdwwPwU+v7V50KzXiuN6DZNukBMjk0bR1QvKNsHEw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.420.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.420.5_1776706081382_0.12566848362686844","host":"s3://npm-registry-packages-npm-production"}},"2026.424.0":{"name":"@acedatacloud/x402-client","version":"2026.424.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.424.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"d9a5c1f43052ecbf3a54468f74515a6db4c7389e","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.424.0.tgz","fileCount":12,"integrity":"sha512-z33We0DsN7/9Vr79qFzn0IVohACO5RS1HNl5eWKoSUl6f1wjB/jqR6+kNgyuA0GxCv4ndgOdnFAcmIRXOLIVVQ==","signatures":[{"sig":"MEUCIQDgaUlRDBE8Q21wyYweI+muzV7VC2mvDbyZ2iinB43JLwIgFyKx2pJJzriY4g7ZaIN4V//B2erZwcDyO+j1BXtPyZc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.424.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.424.0_1777039719296_0.30137160901905435","host":"s3://npm-registry-packages-npm-production"}},"2026.425.0":{"name":"@acedatacloud/x402-client","version":"2026.425.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.425.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"ce11edf0c811295ecfd62a52e2840f506992e723","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.425.0.tgz","fileCount":12,"integrity":"sha512-Im7P65tXuKF0O89ufg+yZF5Ut/hLjVrylWTcYypIlqq3xmFY/ukaWrUOUKugs5u+ixVOVqtW4P/nsgM1u0nEQA==","signatures":[{"sig":"MEQCIE0caqN83+J2E31hgXGZt/GVYUT/1aeYM6vDyZrqO3BpAiBCdI/EtYYBKF/HmICAm6qkPknn+AAERVsMLJan6XiKow==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.425.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.425.0_1777102544626_0.756662734537465","host":"s3://npm-registry-packages-npm-production"}},"2026.425.1":{"name":"@acedatacloud/x402-client","version":"2026.425.1","license":"MIT","_id":"@acedatacloud/x402-client@2026.425.1","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"5d2efc5f0b9efc73a9540a06d78a7114cbc8f9ac","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.425.1.tgz","fileCount":12,"integrity":"sha512-gr3GyZZpc532dFSIJP6BysHGJW0P1i+4PahwfpEgQ+WOUw+vDzhBy+BTq+xo2tGWv25wWLQHfPqdLd8OlvtWxg==","signatures":[{"sig":"MEYCIQCGptEE9/VV25I/FLFD7QImeEekX8+8JEujue33FOebqQIhAKTMMnmxTjAYHJO6O6MjrEg9XQlmVOu5z6oHxgi85QbP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.425.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.425.1_1777104038165_0.9501681248427778","host":"s3://npm-registry-packages-npm-production"}},"2026.507.0":{"name":"@acedatacloud/x402-client","version":"2026.507.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.507.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"6f3dd0c71d291577de5638245c412061e51dc618","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.507.0.tgz","fileCount":12,"integrity":"sha512-uCEVLvc7aJAvi/8s6lK8potMC59OKpV08CgSEvl1RhM66PMFDLs3FJ2zGKPdjSDlsVmQhZc6BvbpoMgE4WmvSg==","signatures":[{"sig":"MEQCIAySkg5STCFl0udGYUh8721L58aFDrZwcL+y8I5dkkU0AiAem/LFFAllmJY/Z9eJUj07yOLsU37RQkbMP1U9awJKpA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.507.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.507.0_1778134709767_0.31527917676291284","host":"s3://npm-registry-packages-npm-production"}},"2026.507.1":{"name":"@acedatacloud/x402-client","version":"2026.507.1","license":"MIT","_id":"@acedatacloud/x402-client@2026.507.1","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"ff414d89e5942b3ce94c78b1ca03a68219134e74","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.507.1.tgz","fileCount":12,"integrity":"sha512-qL8EtMT750/+6On5r/VBnYSAEFI0XgLfyem/vcqGIxcAZW4J+rFJNQBxGuM9q3NxWUDrW48oyrhlvR4Gq+YF9w==","signatures":[{"sig":"MEYCIQC5WQczOIiAINkiH80Fp9j75yugOv/zkksWG6gORH9w/AIhAN32an05sy8lSmKmWEIodOLKBC9ZsD6vOay1SfXhVBoS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.507.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.507.1_1778163712756_0.9177679467135167","host":"s3://npm-registry-packages-npm-production"}},"2026.507.2":{"name":"@acedatacloud/x402-client","version":"2026.507.2","license":"MIT","_id":"@acedatacloud/x402-client@2026.507.2","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"f0c31fe90afc138f7132ce31ad76e14425d1333e","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.507.2.tgz","fileCount":12,"integrity":"sha512-RKGHUQXpArwwTILnvyzeLmb3vLkm+sF3y90g0w2QzOJU62t6Wc9q3ywcrPaAesInnjN3KjXhvG3m0an8TX4TCA==","signatures":[{"sig":"MEUCIBjcepmy9b0zkmnlhOePlebc75BfLacKhqQhOo3iLm4HAiEA7E4FVZZ92DNWDk2WVr6aRfKpG8U/flx+64Vv0JyeB2s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.507.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.507.2_1778164156296_0.02822512580623604","host":"s3://npm-registry-packages-npm-production"}},"2026.531.0":{"name":"@acedatacloud/x402-client","version":"2026.531.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.531.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"efef35d2a806f2e02ec1b53fb543f9902eac215e","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.531.0.tgz","fileCount":12,"integrity":"sha512-HzPAKqlYU+jtdo9KAQAikSK1t236/9pED2fB3IQLpl/P5A1HS+72bEqB+JtWcf5OLD/8kHKttNUpuf1e34ZYIA==","signatures":[{"sig":"MEYCIQCx+4CGFB2hsDgI/bakui1XT9dskyQ10hMTmM5z9j1HrQIhALS6hbYhWshQSH2Gm/61iOHqu2FgnMKLxY56jUHQbanR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.531.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.531.0_1780194798542_0.8956011311836041","host":"s3://npm-registry-packages-npm-production"}},"2026.531.1":{"name":"@acedatacloud/x402-client","version":"2026.531.1","license":"MIT","_id":"@acedatacloud/x402-client@2026.531.1","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"0b1cf945591806ebaeae87622b25b7dbd58531ed","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.531.1.tgz","fileCount":12,"integrity":"sha512-2mT0EAE3cdQ2DC+j/cHOoSR42ItG2+h4tN202dzVzCDD+qceUPYtDVQV0uwE5Yx6StnwhoSKmpMk0ITVJeStUQ==","signatures":[{"sig":"MEQCID9IxvjsHkK+ziGIJJ5BBzyT7dxnGGyIseXNZ7+iKYwfAiBbTUrQw6cZgGyXdhVx8CEqf9t86lpyQf4fEtJfa+uGlA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.531.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.531.1_1780201770614_0.656663001039103","host":"s3://npm-registry-packages-npm-production"}},"2026.531.2":{"name":"@acedatacloud/x402-client","version":"2026.531.2","license":"MIT","_id":"@acedatacloud/x402-client@2026.531.2","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"1a94f128ed533d6c05f399a9569ccb426c07a459","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.531.2.tgz","fileCount":12,"integrity":"sha512-A/kesONGmCk3oSxZ/heq7Q0EudR7v3VXtNkfG7G+6bODbXR10gGVTXbhMyafHS115RvD6SNszuQw0zBNqnjERg==","signatures":[{"sig":"MEUCIF/4XyE06dvkJgJxDaIliRQP2wLxFNnbx3SWJGt/31W3AiEA4QL5cQhH4jJul0yyQdHJfkiVMClQBqczmWFtwQotce0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.531.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22798},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.531.2_1780212997647_0.23143468193507633","host":"s3://npm-registry-packages-npm-production"}},"2026.531.3":{"name":"@acedatacloud/x402-client","version":"2026.531.3","license":"MIT","_id":"@acedatacloud/x402-client@2026.531.3","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"b7d7d07ff4e55e9bf72db64729ca2ebec0d5eb18","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.531.3.tgz","fileCount":14,"integrity":"sha512-/aTMgO/UI6AFj2Y74xP9rxx9Ku30ptsusiXSEcu/3wZmlW2O8Bsv2dEwpajLjE4n5MZHKOykroL652vgBsabPw==","signatures":[{"sig":"MEUCIQDIw9OMX+rBpaPVtBF0QBPvf42UXltsvfITiVuAR3SJHAIgCxkOS72HieRmf2SgiS83cNtFhXjivF7JT9LccvmMAAg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.531.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39641},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.531.3_1780213030424_0.6106929021757568","host":"s3://npm-registry-packages-npm-production"}},"2026.531.4":{"name":"@acedatacloud/x402-client","version":"2026.531.4","license":"MIT","_id":"@acedatacloud/x402-client@2026.531.4","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"6eeeb9d66eedd5bf15fcd4e1338dd5dfc5d5924c","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.531.4.tgz","fileCount":14,"integrity":"sha512-DDqWtmnx+fdeZQrp4R0yUdap0awaHCoO3W67yYKEUWZk6jIx5DM8r3NAEOMm5NwdvpPkpf75SsWh+CJTltCrGg==","signatures":[{"sig":"MEUCIQDGi/a2fjtH/QLtD/c2NROTrew1FVYkMn6mPNd7V+vOGgIgBgwjNKOVVAwQadGI73rnFkYpNg6ddy14kH4wfzRfnAY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.531.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39641},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.531.4_1780247286617_0.24058053147886915","host":"s3://npm-registry-packages-npm-production"}},"2026.531.5":{"name":"@acedatacloud/x402-client","version":"2026.531.5","license":"MIT","_id":"@acedatacloud/x402-client@2026.531.5","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"b403f79d3ece922bc2e44239e7c19719f3350737","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.531.5.tgz","fileCount":14,"integrity":"sha512-9X6iskcek1qUXWnjzwi8uEz8VBYf3ExLRUfc7VHl5jJiAuu2cGSiZJJtC67webiz16ORyJ/U38s2lPk3jni71g==","signatures":[{"sig":"MEUCIQDONpTGi+d5GxOU4RMAq0WIvNvzjr2KWcSuLPDtlDZ70gIgAddzR3U0A4T54Yptk8a5/MwTJJ6IHz35YwRBibTrqJA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.531.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39641},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.531.5_1780248436492_0.8432048375263019","host":"s3://npm-registry-packages-npm-production"}},"2026.613.0":{"name":"@acedatacloud/x402-client","version":"2026.613.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.613.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"37905b0e37fcf204719ac852df8c5d678a79a7a5","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.613.0.tgz","fileCount":14,"integrity":"sha512-37g1Uc7rc6abvSglZaODJdiRRoEJXOAzI48Phg51LJ7xnx1xnqc6J1nQR6goJ9ZMX117+P0gGXge1GisVvzrIA==","signatures":[{"sig":"MEYCIQCP7++YqYfxK5eG5/o1zSdVOBcsHLenzVsAMRWvoADKJwIhALoVKlu54NnZ6jkC4ChUbmGptMSRXAvn0XYCZM5c/EIE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.613.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39641},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.613.0_1781336899305_0.9344377908178005","host":"s3://npm-registry-packages-npm-production"}},"2026.708.0":{"name":"@acedatacloud/x402-client","version":"2026.708.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.708.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"26c6452cdf7e78cf99fc49e5b79851a35c8e2d50","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.708.0.tgz","fileCount":14,"integrity":"sha512-V8ITUN1iJw3B+jemGa4wnQN7bLEd2SaZq70qg1mOcpK/qLkeywEeuzZC3siOMlGuivXnNwBtY3zkbYJMWiM6cA==","signatures":[{"sig":"MEUCIEYe+ViPQ5nzJdJrJKw8aPKL30LAjRR6vmLTUjhSzs/AAiEAuU0aOiEsUsluEZPylEg1Oz+39VSM0RZFPRpS9FiTLds=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.708.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39641},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.708.0_1783504812612_0.14226820212645586","host":"s3://npm-registry-packages-npm-production"}},"2026.716.0":{"name":"@acedatacloud/x402-client","version":"2026.716.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.716.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"614091329e93351fc2a7f20c92a9d73b17f13dbc","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.716.0.tgz","fileCount":14,"integrity":"sha512-mtW6mk+PNfz02fFqCil7FFMC7YZC3qEU+e/saB10cqGNP3NRaOIXTeADJ0XqRITKJ9Vgdro0yLHHcS1PLkEwGg==","signatures":[{"sig":"MEYCIQD6Y8Zr1aVEliuMqlsKe02QQn/SCc7vOpi636MLFznUdQIhANB8WRmwxNjekijkDXVCMlTulnAG955B7sA0oJ4/wIYc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.716.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39723},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.716.0_1784201313413_0.14311517830343945","host":"s3://npm-registry-packages-npm-production"}},"2026.718.0":{"name":"@acedatacloud/x402-client","version":"2026.718.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.718.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"fe0c182873dbcc92ab47d7a2483c2e3d109c38b2","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.718.0.tgz","fileCount":14,"integrity":"sha512-kOFYCnHL2kBtUmSD1p4Icn0TrINpX0P3gG7U19IS88p/kEzeyeE9WtRs2Vu4KegzP844HK1guoWIu3G7G6RW6g==","signatures":[{"sig":"MEQCIAWGNhnQHRaSdN7JVis6vThpH5V09fNd6taOXRTrdBt3AiB//C/5mD8CGCBArufdDUokCvg5XO/BPus/vWp2+XlDNw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.718.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":42681},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.718.0_1784380101856_0.42558691340137345","host":"s3://npm-registry-packages-npm-production"}},"2026.721.0":{"name":"@acedatacloud/x402-client","version":"2026.721.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.721.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"ef2ec442a00393d9beb296edd6c73b6b0fad9acc","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.721.0.tgz","fileCount":14,"integrity":"sha512-d49gxvyKORNP3cE5QUdmxDAz2K1KyDMYoHJpLeDgs3yi9sP3I+ZPzwuMZniK88VczsbzTdmACXAfrCXnw50Xqw==","signatures":[{"sig":"MEYCIQCnZiDRie3rjMzIkTA5svQQJD214M/FiFGgaZciCYExogIhAOHWI8pjlmpCz/jyBlLYvwx/bIICPLdVw103bRw3ST+a","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.721.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43057},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.721.0_1784652715896_0.8388715698639071","host":"s3://npm-registry-packages-npm-production"}},"2026.722.0":{"name":"@acedatacloud/x402-client","version":"2026.722.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.722.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"d77dd4bd8655c519876063efcb9b92660f119a7b","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.722.0.tgz","fileCount":14,"integrity":"sha512-lMMh2MMhHf7mCRiEK0PP3Jjf0Ni5PPzWw3JdxAyclEJgUpmzjkZ9lR76knp5omJefRCLzb5QGUq4KbGcqyfrHg==","signatures":[{"sig":"MEUCIQCoeSt5R9N9gbbFpnB/tsy+RKHScUih+BHe4EGSMP1GuQIgAu8SObTt+A2UhW6JEQdK0pHDpajnK5n/FGdbxpuGAvI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.722.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43517},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.722.0_1784699622543_0.06047210241246459","host":"s3://npm-registry-packages-npm-production"}},"2026.726.0":{"name":"@acedatacloud/x402-client","version":"2026.726.0","license":"MIT","_id":"@acedatacloud/x402-client@2026.726.0","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"54e05140f638c242547b8ff687cb6386604deda9","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.726.0.tgz","fileCount":14,"integrity":"sha512-b5IuvzaWy8BNrA9IeHtBFdrux6YINNLm3ty07quvu59KGHotbwSrDA3CVD641IGnRc1TJKBMa5Nm4Kyr8dFmjA==","signatures":[{"sig":"MEQCIAwxvX3KnSZ6Gdyi/lFPoCg2z5Y7NerOVCjJUXZypuFPAiA5dtaCU65OakOn7wDK+tg6E3F1QRKOMWjnpqCe7nbbWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.726.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43517},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.726.0_1785042855075_0.8698670405068292","host":"s3://npm-registry-packages-npm-production"}},"2026.726.1":{"name":"@acedatacloud/x402-client","version":"2026.726.1","license":"MIT","_id":"@acedatacloud/x402-client@2026.726.1","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"homepage":"https://github.com/AceDataCloud/X402Client#readme","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"dist":{"shasum":"6d07df7c596be4f7261bca7f82c1b24b503960c9","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.726.1.tgz","fileCount":14,"integrity":"sha512-BY60FupG74Kx3F4AvI5LPbRKahiPreN69pk8Iopj3zaqcRqcOxv17tXO3l2Z/9Xlslr1blNAJEkzNDgvEpMkzg==","signatures":[{"sig":"MEQCIBg8wKF2dxcS17cfZjj8HAMflFPGvYNSfVh+ktUjozMlAiBrjtZZljyoufvg7YmjeEqmdBQMxJi0o29sc7y0l3Pgtg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.726.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43654},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./evm":{"types":"./dist/evm.d.ts","import":"./dist/evm.js"},"./sdk":{"types":"./dist/sdkAdapter.d.ts","import":"./dist/sdkAdapter.js"},"./solana":{"types":"./dist/solana.d.ts","import":"./dist/solana.js"},"./approve-permit2":{"types":"./dist/approvePermit2.d.ts","import":"./dist/approvePermit2.js"}},"scripts":{"lint":"eslint src/","test":"vitest run","build":"tsc","version:date":"node scripts/set-date-version.mjs","prepublishOnly":"node scripts/set-date-version.mjs && npm run build","version:date:dry":"node scripts/set-date-version.mjs --dry-run"},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"repository":{"url":"git+https://github.com/AceDataCloud/X402Client.git","type":"git"},"_npmVersion":"10.8.2","description":"X402 payment protocol client for AceDataCloud APIs","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ethers":"^6.13.0","vitest":"^2.0.0","typescript":"^5.5.0","@solana/web3.js":"^1.95.0"},"peerDependencies":{"ethers":"^6.0.0","@solana/web3.js":"^1.90.0"},"peerDependenciesMeta":{"ethers":{"optional":true},"@solana/web3.js":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/x402-client_2026.726.1_1785044949683_0.13146982625961945","host":"s3://npm-registry-packages-npm-production"}},"2026.804.0":{"name":"@acedatacloud/x402-client","version":"2026.804.0","description":"X402 payment protocol client for AceDataCloud APIs","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./sdk":{"import":"./dist/sdkAdapter.js","types":"./dist/sdkAdapter.d.ts"},"./solana":{"import":"./dist/solana.js","types":"./dist/solana.d.ts"},"./evm":{"import":"./dist/evm.js","types":"./dist/evm.d.ts"},"./approve-permit2":{"import":"./dist/approvePermit2.js","types":"./dist/approvePermit2.d.ts"}},"scripts":{"build":"tsc","lint":"eslint src/","test":"vitest run","version:date":"node scripts/set-date-version.mjs","version:date:dry":"node scripts/set-date-version.mjs --dry-run","prepublishOnly":"node scripts/set-date-version.mjs && npm run build"},"peerDependencies":{"@solana/web3.js":"^1.90.0","ethers":"^6.0.0"},"peerDependenciesMeta":{"@solana/web3.js":{"optional":true},"ethers":{"optional":true}},"devDependencies":{"@solana/web3.js":"^1.95.0","ethers":"^6.13.0","typescript":"^5.5.0","vitest":"^2.0.0"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/AceDataCloud/X402Client.git"},"_id":"@acedatacloud/x402-client@2026.804.0","bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"homepage":"https://github.com/AceDataCloud/X402Client#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-wA2ylk58oP+Zmbtu6ii4TLWGys9YavjAEiaR/cWcFvDqb6S4312M4MClohNE4QkyOXN+RMMgXuxRMD9sl42Jdg==","shasum":"80f2b8464fbc6f6da8b497f90c1040459ce28016","tarball":"https://registry.npmjs.org/@acedatacloud/x402-client/-/x402-client-2026.804.0.tgz","fileCount":14,"unpackedSize":44849,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acedatacloud%2fx402-client@2026.804.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE19/vu37TtZMV8AZF/OXYc+w3uX6Q7FpDlmUMrvnwa1AiEA7S0GWLWB+jQUBpCtle3PNLNfuBayvN1xitRSQWHn0bY="}]},"_npmUser":{"name":"germey","email":"cqc@cuiqingcai.com"},"directories":{},"maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x402-client_2026.804.0_1785834413000_0.880677046016922"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-19T04:30:15.091Z","modified":"2026-08-04T09:06:53.590Z","0.1.0":"2026-04-19T04:30:15.382Z","2026.4.19":"2026-04-19T16:50:06.330Z","2026.4.20":"2026-04-20T17:19:15.696Z","2026.4.2-0.1":"2026-04-20T17:21:46.743Z","2026.420.0":"2026-04-20T17:22:22.249Z","2026.420.1":"2026-04-20T17:23:00.111Z","2026.420.2":"2026-04-20T17:24:15.388Z","2026.420.3":"2026-04-20T17:25:04.393Z","2026.420.4":"2026-04-20T17:26:26.454Z","2026.420.5":"2026-04-20T17:28:01.507Z","2026.424.0":"2026-04-24T14:08:39.433Z","2026.425.0":"2026-04-25T07:35:44.776Z","2026.425.1":"2026-04-25T08:00:38.350Z","2026.507.0":"2026-05-07T06:18:29.941Z","2026.507.1":"2026-05-07T14:21:52.895Z","2026.507.2":"2026-05-07T14:29:16.441Z","2026.531.0":"2026-05-31T02:33:18.672Z","2026.531.1":"2026-05-31T04:29:30.791Z","2026.531.2":"2026-05-31T07:36:37.810Z","2026.531.3":"2026-05-31T07:37:10.570Z","2026.531.4":"2026-05-31T17:08:06.756Z","2026.531.5":"2026-05-31T17:27:16.651Z","2026.613.0":"2026-06-13T07:48:19.438Z","2026.708.0":"2026-07-08T10:00:12.737Z","2026.716.0":"2026-07-16T11:28:33.581Z","2026.718.0":"2026-07-18T13:08:21.980Z","2026.721.0":"2026-07-21T16:51:56.044Z","2026.722.0":"2026-07-22T05:53:42.666Z","2026.726.0":"2026-07-26T05:14:15.212Z","2026.726.1":"2026-07-26T05:49:09.822Z","2026.804.0":"2026-08-04T09:06:53.190Z"},"bugs":{"url":"https://github.com/AceDataCloud/X402Client/issues"},"license":"MIT","homepage":"https://github.com/AceDataCloud/X402Client#readme","repository":{"type":"git","url":"git+https://github.com/AceDataCloud/X402Client.git"},"description":"X402 payment protocol client for AceDataCloud APIs","maintainers":[{"name":"germey","email":"cqc@cuiqingcai.com"}],"readme":"# @acedatacloud/x402-client\n\n> X402 payment protocol client for AceDataCloud APIs.\n> Pay per request with USDC — **no API key, no account, no session**.\n\nEvery [AceDataCloud](https://platform.acedata.cloud) API that costs money (chat completions, image generation, video generation, music generation, web search, …) now speaks the [x402 protocol](https://x402.org). This package ships the only piece the SDK can't do by itself: signing a `PAYMENT-SIGNATURE` header when the server returns `402 Payment Required`. It plugs straight into [`@acedatacloud/sdk`](https://github.com/AceDataCloud/SDK) as a `paymentHandler`.\n\n- 🟦 **Base** — USDC (ERC-20). Two schemes:\n  - `exact` (EIP-3009 `transferWithAuthorization`) for fixed-price endpoints\n  - `upto` (Uniswap Permit2 `PermitWitnessTransferFrom`) for token-metered chat APIs — sign once over a ceiling, the facilitator settles the actual cost\n- 🟪 **Solana** — USDC (SPL) via signed transfer\n- 🟨 **SKALE** — USDC (bridged) via EIP-3009\n\nAll three networks settle through our production facilitator at **`https://facilitator.acedata.cloud`** ([source](https://github.com/AceDataCloud/FacilitatorX402)).\n\n---\n\n## How it works\n\n```\nSDK call (no Bearer token)\n      │\n      ▼\n x402.acedata.cloud ── 402 Payment Required + accepts[] ──▶  SDK\n                                                             │\n                                              paymentHandler │ (this package)\n                                                             ▼\n                                              sign PAYMENT-SIGNATURE envelope\n                                                             │\n      ◀────────── retry with PAYMENT-SIGNATURE ──────────────┘\n200 OK (+ x402_tx hash in headers)\n```\n\nThe SDK keeps doing everything it already does — task polling, SSE streaming, retries, typed errors — and this package contributes exactly one thing: the per-chain signature.\n\n---\n\n## Install\n\n```bash\nnpm install @acedatacloud/sdk @acedatacloud/x402-client\n# extra peers depending on the chain(s) you use:\nnpm install ethers            # Base / SKALE\nnpm install @solana/web3.js   # Solana\n```\n\nIf the npm package is not yet published you can install from GitHub:\n\n```bash\nnpm install @acedatacloud/sdk github:AceDataCloud/X402Client\n```\n\n---\n\n## Quick start\n\n### Base or SKALE (EVM)\n\n```ts\nimport { AceDataCloud } from '@acedatacloud/sdk';\nimport { createX402PaymentHandler } from '@acedatacloud/x402-client';\n\nconst client = new AceDataCloud({\n  // No apiToken — per-request on-chain payment.\n  baseURL: 'https://x402.acedata.cloud',\n  paymentHandler: createX402PaymentHandler({\n    network: 'base',                // or 'skale'\n    evmProvider: window.ethereum,   // any EIP-1193 provider works\n    evmAddress: '0xYourAddress...',\n    preferScheme: 'upto',           // for chat APIs; falls back to 'exact' if upto isn't offered\n  }),\n});\n\nconst res = await client.openai.chat.completions.create({\n  model: 'gpt-4o-mini',\n  messages: [{ role: 'user', content: 'Say hi in 3 words' }],\n  max_tokens: 10,\n});\nconsole.log(res.choices[0].message.content);\n```\n\n> When `preferScheme` is omitted the handler picks whatever the server lists first.\n> Chat APIs advertise both `exact` and `upto`; image / video / music APIs currently advertise only `exact`.\n> The handler accepts `base`, `skale`, and `solana` as configuration aliases.\n> Wire requirements use canonical CAIP-2 IDs: `eip155:8453`,\n> `eip155:1187947933`, and `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`.\n\n#### One-time Permit2 approval (`upto` only)\n\nBefore the first `upto` payment, the payer wallet must approve Permit2 to pull its USDC. Either run the bundled CLI:\n\n```bash\ncd typescript\nnpx tsx scripts/approve-permit2.ts --network base\n# expects X402_PRIVATE_KEY or X402B_BASE_PAYER_PRIVATE_KEY in env / .claude/.env\n```\n\nor call it programmatically:\n\n```ts\nimport { approvePermit2 } from '@acedatacloud/x402-client';\n\nawait approvePermit2({\n  rpcUrl: 'https://mainnet.base.org',\n  privateKey: process.env.X402B_BASE_PAYER_PRIVATE_KEY!,\n  tokenAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', // USDC on Base\n});\n```\n\nThe helper is **idempotent** — re-running it after the allowance is already at or above the requested amount returns `{ skipped: true }` without sending a transaction. Required exactly once per `(payer, token, chain)`.\n\n### Solana\n\nSolana payments use a recent blockhash and must reach facilitator broadcast within 60 seconds. Use this network only for APIs expected to complete inside that window; long-running protected calls require a future durable-nonce settlement flow.\n\n```ts\nimport { AceDataCloud } from '@acedatacloud/sdk';\nimport { createX402PaymentHandler } from '@acedatacloud/x402-client';\n\nconst client = new AceDataCloud({\n  baseURL: 'https://x402.acedata.cloud',\n  paymentHandler: createX402PaymentHandler({\n    network: 'solana',\n    solanaWallet: phantomWallet,     // any wallet adapter with signTransaction()\n  }),\n});\n\nconst task = await client.images.generate({\n  provider: 'nano-banana',\n  prompt: 'a yellow banana on a white background',\n});\nconst result = await task.wait();    // task polling handled by the SDK\n```\n\nEvery AceDataCloud endpoint the SDK exposes (`openai.chat`, `images`, `audio`, `video`, `search`, …) works the same way.\n\n---\n\n## Setup\n\n1. **Fund a wallet with USDC** on the network you want to use:\n   - Base — [USDC on Base](https://basescan.org/token/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)\n   - Solana — [USDC on Solana](https://explorer.solana.com/address/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v)\n   - SKALE — bridged USDC on SKALE Europa\n2. A few cents of USDC is enough for most single requests (prices are listed at [platform.acedata.cloud](https://platform.acedata.cloud)).\n3. Construct the handler with whatever wallet primitive you have: a browser provider, a Node `ethers.Wallet`, `@solana/web3.js` keypair, etc.\n\n---\n\n## Low-level signing\n\nIf you need to produce a `PAYMENT-SIGNATURE` envelope outside the SDK — for example in a custom fetch wrapper, tests, or an agent framework — the raw signing primitives are exported directly:\n\n```ts\nimport {\n  signSolanaPayment,\n  signEVMPayment,\n  signEVMUptoPayment,\n} from '@acedatacloud/x402-client';\n\n// Solana\nconst solEnvelope = await signSolanaPayment(req, solanaWallet);\n\n// Base / SKALE — exact scheme (fixed price)\nconst evmEnvelope = await signEVMPayment(req, evmProvider, evmAddress);\n\n// Base — upto scheme (metered)\nconst uptoEnvelope = await signEVMUptoPayment(req, evmProvider, evmAddress);\n\nconst header = btoa(JSON.stringify(uptoEnvelope));\n```\n\nSend `header` as the `PAYMENT-SIGNATURE` request header. The signing primitives\nalready return the canonical v2 `{ x402Version, accepted, payload }` envelope;\ndo not wrap their output in another `{ scheme, network, payload }` object.\n\nThe live e2e scripts under `scripts/` use these low-level entry points to settle real USDC on chain. For application code, prefer the SDK path above.\n\n---\n\n## Running the real end-to-end tests\n\nThis repo includes live, on-chain smoke tests. They require a **funded wallet** (a few cents of USDC is plenty).\n\n```bash\ngit clone https://github.com/AceDataCloud/X402Client.git\ncd X402Client\nnpm install\n\n# Base — EVM private key, exact scheme\nexport BASE_TEST_PRIVATE_KEY=0x...\nnode --experimental-strip-types scripts/test-real-e2e.ts\n\n# Base — EVM private key, upto scheme (chat API, metered)\nexport X402B_BASE_PAYER_PRIVATE_KEY=0x...\nnode --experimental-strip-types scripts/test-upto-e2e.ts\n\n# Solana — base58-encoded secret key\nexport SOLANA_TEST_PRIVATE_KEY=...\nnode --experimental-strip-types scripts/test-solana-e2e.ts\n\n# SKALE — EVM private key with funded bridged USDC\nexport SKALE_BASE_PRIVATE_KEY=0x...\nnode --experimental-strip-types scripts/test-skale-e2e.ts\n```\n\nEach script:\n\n1. Sends `POST /openai/chat/completions` with no auth.\n2. Parses the returned `402`.\n3. Signs the payment envelope.\n4. Retries with `PAYMENT-SIGNATURE`.\n5. Prints the trace ID, chain tx hash, and the final chat response.\n\n---\n\n## Dynamic pricing regression\n\n`scripts/test-api-billing-scenarios.ts` runs multiple APIs with different payloads and verifies the advertised 402 amount exactly matches `floor(credits × 0.095215 × 1e6)`, then asserts an `ApiUsage` record with the on-chain tx hash lands in our logging pipeline.\n\n```bash\nexport X402B_BASE_PAYER_PRIVATE_KEY=0x...   # Base wallet with a few cents of USDC\nnode --experimental-strip-types scripts/test-api-billing-scenarios.ts\n```\n\n---\n\n## Proof of real on-chain settlement\n\nLatest successful live runs on `2026-05-31` (Base, `upto` scheme — three different metered chat models settled with the actual cost, not the ceiling):\n\n- `claude-sonnet-4-5` → [`0xc1f90cc6…b093dd8`](https://basescan.org/tx/0xc1f90cc6c2d71b50ab863ce3ac6a940a0c30291c156b71ba839cdfef3b093dd8) (151 atomic USDC)\n- `gpt-5.5` → [`0xda8f0ff0…fcca57`](https://basescan.org/tx/0xda8f0ff09aeccd8b175188984b3f2d1b84b9c78d933625dd118dd8feeafcca57) (135 atomic USDC)\n- `glm-4.7` → [`0xae9bba18…7c5dda`](https://basescan.org/tx/0xae9bba183545283d3b67c245f41f840b948c4141d90a437ffb978ebfc07c5dda) (262 atomic USDC)\n\nPrevious `exact`-scheme runs (`2026-04-19`):\n\n- **Base** — tx [`0x11313652…5327ec`](https://basescan.org/tx/0x11313652b99cbb07c62fa1125ab1a41dc3c14593efa349c7699bd1b7736327ec)\n- **Solana** — tx [`3qB25xsy…eBVzr`](https://explorer.solana.com/tx/3qB25xsyQ36eQsKqk5S57VQXJ1z9tG2rAytrS1tuKkC4NZkJAj2BfmqDdY34VvBabEjpJQwJ2MNXhN325VeeBVzr?cluster=mainnet-beta)\n- **SKALE** — tx [`0xc6c7affe…aae42e1`](https://skale-base-explorer.skalenodes.com/tx/0xc6c7affe2a0a2bb89306d4fdc4d84c8fb564533d52799b16361b891c1aae42e1)\n\nAll chains live; all settlements flow through our own facilitator at `https://facilitator.acedata.cloud`.\n\n---\n\n## Pricing for other APIs\n\nThe handler does **not** hardcode AceDataCloud prices. For any x402-enabled API, the server returns the real charge in the first `402` response:\n\n```json\n{\n  \"accepts\": [\n    {\n      \"network\": \"eip155:8453\",\n      \"amount\": \"95215\",\n      \"payTo\": \"...\",\n      \"asset\": \"...\"\n    }\n  ]\n}\n```\n\nThat means:\n\n- price is determined server-side by the API path, model, and request body\n- different APIs can return different `amount` values\n- the client signs exactly what the server asks for\n\nIf you want to preview the price for another API without paying yet, send the same request once without Bearer auth and without `PAYMENT-SIGNATURE`, then inspect the returned `accepts` list.\n\nAt the time of writing, **121 of 122 public APIs have x402 pricing configured** — the only exception is the free `/fish/voices` listing.\n\n---\n\n## Python\n\nA byte-compatible Python port is published as [`acedatacloud-x402`](https://pypi.org/project/acedatacloud-x402/) and lives in [`../python/`](../python/) — same `exact` + `upto` signers, same `approve_permit2` helper, same on-chain test vectors.\n\n---\n\n## Release flow (CalVer)\n\nThis repo publishes on every push to `main`:\n\n1. `.github/workflows/publish.yml` builds, computes today's version via CalVer (`YYYY.M.D[.N]`), patches `package.json`, runs `npm publish --provenance --access public`, and creates a matching GitHub Release.\n2. The `version` field committed in `package.json` is a placeholder — the real number is stamped at publish time.\n\nIf you need a manual publish:\n\n```bash\nnpm run version:date      # stamps today's date\nnpm publish --access public\n```\n\n---\n\n## License\n\nMIT © AceDataCloud\n","readmeFilename":"README.md"}