{"_id":"@akcanetwork/x402","_rev":"23-681cd6a26d1b067a4cc549591a5174c4","name":"@akcanetwork/x402","dist-tags":{"phantom":"0.4.3","latest":"1.0.1"},"versions":{"0.1.0":{"name":"@akcanetwork/x402","version":"0.1.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.1.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"457c43afebe702f8162c1904249925983300962c","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.1.0.tgz","fileCount":3,"integrity":"sha512-15iBEsUunet2q3PlPo26jz2O+iJQQSJr0MZfUWa/uTVWnh0tlGQXoUWgAM2ktIdX+POsNQAntvimmPo9azNqKg==","signatures":[{"sig":"MEYCIQDa4mIi/UAYLRzpNjF0J9HKl5Hcx4UYPe1UJ1rlS3y9xAIhAK+GvZSgJU1ZtP1OT5ZHU+Wl/vu1jupY7LMsL6+OozJ/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11444},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"536bb5caaba6c9217dbc36256b657b2ef88adb92","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.1.0_1772762338800_0.8476525985361327","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@akcanetwork/x402","version":"0.1.1","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.1.1","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"7795b4996d986a31aeb560ddb35c0adec9c053d3","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.1.1.tgz","fileCount":3,"integrity":"sha512-SBHfG8Y27OgxIccNLhqKYqkuSCofoQJednJG2f8koxnyP1E6Njk0uRHsL59ALDxsVAXJCIm8Qa1OqOteUZDtZA==","signatures":[{"sig":"MEUCIQDlJ11KBPvF36j73MrAvp7hLtzr9LGfpNphKBcxMoezmAIgbeH/B5JFnaxW4RsphIN57RVIuggRZqpink3PQjIA5ko=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11518},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"407fba8ca53eda969cc6e490d0515e6a64cb7115","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.1.1_1772764102652_0.11985438491757594","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@akcanetwork/x402","version":"0.2.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.2.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"c68b77649552c07a4dad4fd683d809a0a5c6f053","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.2.0.tgz","fileCount":3,"integrity":"sha512-TO1BHk4k5RDNPXk316wSugzTqY9UwHPo3DAKT1r+4/yrQFnnpfXns5zok3Lcf2a6T0S6Awo8h0sAQ+pC61wmLg==","signatures":[{"sig":"MEQCIAsq1JZUnOZn9q6VI62XnuUZNyEi02vIyIXdtc3kBq0/AiBTvNACg7uEemfNjhAL/dJza9eDRiK3KvW4So/e/plqKw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19518},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"407fba8ca53eda969cc6e490d0515e6a64cb7115","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.2.0_1772765128850_0.567991658674583","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@akcanetwork/x402","version":"0.2.1","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.2.1","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"5241cc199803599065c64aa5c68aabf354f1e483","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.2.1.tgz","fileCount":3,"integrity":"sha512-isi9NFteZfPs7851HK3+uYzErCSdCIxz+hxwQdq4m2LuMQw/PZzdFlhZ9rKKK6ranPRvY2Ds/9FONELjhcmtsQ==","signatures":[{"sig":"MEUCIAYj0YoEKXbVY3wEDLBsaFY1ckI8zt63+DPYfnKLBHpjAiEAsk1sI8b0SbKJOxBhYymHwgAHfCAvisO0DKQmIZicNM4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20979},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"407fba8ca53eda969cc6e490d0515e6a64cb7115","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.2.1_1772765167927_0.590901262016976","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@akcanetwork/x402","version":"0.2.2","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.2.2","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"1f459d6d7518206f219f81c3b9ceb2527ed614d3","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.2.2.tgz","fileCount":3,"integrity":"sha512-AXvBrS1uue8+pbCXra/1l8CIf/9JGxxHo+r64xIaaNpsOSzZTF/qy89m59NCSJXt1i59ZIA5OPlFfarTcrCpVA==","signatures":[{"sig":"MEUCICDY++vXjlebFB+CI5j7OvqjFvmBTQe3hwN5hNe6NCjrAiEA1ZgRR93+ZYHUT9oYR0vRa7en1X2feQEL64DPfuW3YhM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21012},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"8a1fc4556104b1a20ac55ba5a7ca79dd91f7e885","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.2.2_1772766049942_0.6048197450500226","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@akcanetwork/x402","version":"0.3.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.3.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"527c978840c06f2191d05d99ab6f89fd2ab393ca","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.3.0.tgz","fileCount":3,"integrity":"sha512-DyXMBcrvpX3E4gMLCA+GvX0e7EcQ6Y0v3yBuslvDw2XL4Oan9QyreHDkCRsbtaAzFKEheYB14UMpO0rasnF0oQ==","signatures":[{"sig":"MEQCIELmhIGxDGl6uz/XJxulldcmCtg69pQ4r8j9RIPPC0EPAiAxvMrtpVsqm7el34l6xvJcspeIQZytUxI46jQonfaqXw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25329},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"c3ed813669bc94fa0e5516c554e62fedb42ce3af","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.3.0_1776194551265_0.16560013958234254","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@akcanetwork/x402","version":"0.3.1","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.3.1","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"35007b04d371f68860e5ff670affbf4b9161647b","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.3.1.tgz","fileCount":3,"integrity":"sha512-qma9qQe5bMpKmMukke02Tm8rqXHwQ4MhMO54l1FDrEWTJi4nYyMJW9hpSfU33Nn5fukYH6hC29lOt/X/M60A7w==","signatures":[{"sig":"MEYCIQCoeuQcH1tgtP01qWb6F138KYisW1oUq1Z59B87bwCjHAIhALjRz5JK3rRgEP1Lka3C8WKQNjETrEBDlbGqSxl0+Jdd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26961},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"c3ed813669bc94fa0e5516c554e62fedb42ce3af","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.3.1_1776194687380_0.7675680086898704","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@akcanetwork/x402","version":"0.3.2","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.3.2","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"ae17b8356a23996316a1163bfdaf9a8b30202261","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.3.2.tgz","fileCount":3,"integrity":"sha512-31RTe0MRkPQkOm40s15rnI3RF7JHcqm4mbrdpFwU8fFgIbMewGqw3EaaqVEHhO74JkqY9pDEIXqi01umgR4vUw==","signatures":[{"sig":"MEUCIQCqRtdG0Q6/dgxDJS1GdvXE166OzXCokcS1Xauiv4qFgAIgOFY+vbT+NqUHNM3Q1lCKZk+tisyAIRGWQLfZFwMAXtc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27134},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"c3ed813669bc94fa0e5516c554e62fedb42ce3af","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.3.2_1776194975268_0.6368862786894456","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@akcanetwork/x402","version":"0.4.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.4.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"179e6d37a922f791d66726beb639f934d58a3f83","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.4.0.tgz","fileCount":3,"integrity":"sha512-goL2qn2v6R2phkE3Lbxk8jufrvOwo4d2EK9/oFATbDL81arZbEZU2X1FPEQalxh5rbTD7atpFEqfGFgDB2oY8A==","signatures":[{"sig":"MEQCIF+1uLXASnsEyMdr568M55gTSYNnHCwuWQaGSOU7tjXUAiAg6H3ZzsObogD6Ok9wh6VCGv0QM7RYs5xYMcAy1MKjBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28470},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"444b0bdf0b997b8f48ed5cc655c09c734a83fada","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.4.0_1776642447730_0.9244455826387878","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@akcanetwork/x402","version":"0.4.1","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.4.1","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"fe9bdcb12294d094b3b6839685103a7c3afdfdef","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.4.1.tgz","fileCount":3,"integrity":"sha512-JOcopWHF9APULQ7rHJJMBiE6fsZACYNxUvXNWE7eOaoNgFa1+yG7JWTDEW2sQ645tJkndikU5xc4ePVuqWGw+Q==","signatures":[{"sig":"MEYCIQCkZXY5dlMKcVg/PrbLqDMVRdtfBcKFe73kyMuMjZHsnQIhAIls4chOmK/HWVW0yGDH0j69fuP4h2sQ0LdIU3Xoalj2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28398},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"dcdd47f11635479dbabf4af16356096f1507a011","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.4.1_1776790266292_0.7219007237431745","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@akcanetwork/x402","version":"0.4.2","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.4.2","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"dd60bd63b893185e1d79b31bac8f16b995c6c875","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.4.2.tgz","fileCount":3,"integrity":"sha512-VfuRnDWQhJ4Gjsekhy6sV4QAWjt65ECmMBFi7ljEZDboprYkRTeLbWUHgdgG0m/mQjLWgrvhImkueBEyLURmLQ==","signatures":[{"sig":"MEYCIQDfqHVLuun0ExZvFUQnq2ATjofGcX6TZWhzhkx1ojbU8QIhANdA66OrVvt0Nw6F+KsrPFoXepQbQCjAB3tj80eFtpsd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28384},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"dcdd47f11635479dbabf4af16356096f1507a011","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.4.2_1776791760702_0.43085797920384183","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@akcanetwork/x402","version":"0.4.3","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.4.3","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"cb0302b2ed9db12aa16f98fff68ad712efbe4fe8","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.4.3.tgz","fileCount":3,"integrity":"sha512-EI98DnCpjh02Q+T3vj3EaoHu/kDPcgtjLhNNmlUWsYj2JcIW9aorx5LpzOY/1FheWI7lypREHogmVEl0gHbEHg==","signatures":[{"sig":"MEQCIGcyDWxEtTeIYNQ9q9zpz2y5a/72YxI+mS0Ealp2TJDiAiAYWkmeQO4t4rhRbM0OCZT8Xr+5wcSgufubMGMZY8VjeA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28416},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"e4ef2e33ce87ece9098820547d0df200f8831988","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.4.3_1778568566035_0.3373775391428053","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@akcanetwork/x402","version":"0.5.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.5.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"aad68e62d3b164dc5ecddcec3534bfa4ed39689a","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.5.0.tgz","fileCount":3,"integrity":"sha512-IgSUGDvUZ7eWy3zW1tQLTeAWOyGMx0uvwG4ZFAafL+T5cZlg6zo8r+oZOK4jj9CXTc2gS9rSjC5fMkLycP1lww==","signatures":[{"sig":"MEUCIHgsMuIypImsddqR/iYzuVkNkD6MDrbGvTLID5XpbTZbAiEAngjOyTV4c6m8u1Uu6Z5tovzhPL3NDg58Tl20DVR1H+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28416},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"8081c5c62b773cdb543194acb6f5a1bcb666a85f","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.5.0_1778768662133_0.12291682546703897","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@akcanetwork/x402","version":"0.6.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.6.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"60355d58c096b64cf271f38fb5f5c1ecac5ba86d","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.6.0.tgz","fileCount":3,"integrity":"sha512-ekgHUZaqp04s8G/WcPG2pv1qgZIZtsM4DvKo0MkJLjhkhCnoRWD/XyFMUg6X/sHrkFlfFy/0050b2UqYCUQfXw==","signatures":[{"sig":"MEUCIQDyFGnPMuL017OPWLCDpb/8n7HahiZyLscQICetKlPkUAIgDtK7Sr/QHq5gh7V9J5DnvFDyWR2dXVTtitjluvCvQSM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29367},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"1156c4e9771cdfcbccd32cb01352f45cc3ec5dbe","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.6.0_1778947163996_0.37903635052455664","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@akcanetwork/x402","version":"0.7.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.7.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"85a181e0798fb6f88359db0214a5df8006b19d4e","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.7.0.tgz","fileCount":3,"integrity":"sha512-HBYNPdqZkzhXfWrDk4ht3sVeuVgdMLHMas13oTXtzqCIDyTsa/CqtTLI0d/qTCb1eS+qZZKwlnxhAPZ+5JYcrQ==","signatures":[{"sig":"MEYCIQDutrg8EVlXzrPs6YTP6zayNMGZcshphjrpko/AmMBGYQIhAPXbvpLIjM+1f0wTbGMvcJZZpkXS/qSUEfHs1xN9aSqn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29429},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"edf1abe0c0f2cea06d98788c884a1d8f6824986d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.7.0_1779134524349_0.2521413462860427","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@akcanetwork/x402","version":"0.8.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.8.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"ce896de05cf53f9e4782d6cb3fd11992cb7ca521","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.8.0.tgz","fileCount":3,"integrity":"sha512-u8yaehXmTd2VnlufRfqbrSIq7cTnBUhvy6VQ8f3rNGmYnfPWO40EZLDaNLQGYEu8PbcvD1/9ri1K6rAkciqdPA==","signatures":[{"sig":"MEUCIB+TqxY0L+zg+ldLuTBDo2NW0txNNf177GEoFMLl4XrLAiEApmrrPesZOJy8Au4hCHSndbBlT93pEQwXKgCAQUI3pgc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35784},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"edf1abe0c0f2cea06d98788c884a1d8f6824986d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.8.0_1779142067713_0.0852127555855926","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"@akcanetwork/x402","version":"0.8.1","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.8.1","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"88e1dc91d9846bebd889802569f123a28a8e1228","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.8.1.tgz","fileCount":3,"integrity":"sha512-2lyfmFNuogrIeVRoemxya3glitV6aP6tA4Q57SaHiq93xtckdGw+ZKnWeu6B8okTi2s1ZlSnABBjlFyFj8jn2A==","signatures":[{"sig":"MEYCIQDb+aBj5OcqIPjS/FCuuM5MKqUOAO7P2SzPbFBJWWLrkAIhAPvrh6mtkGGVZHPIh2wU1ub9FMNQfutXq1u04CXFlCN7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39977},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"edf1abe0c0f2cea06d98788c884a1d8f6824986d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.8.1_1779142185291_0.10880525402377694","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@akcanetwork/x402","version":"0.9.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.9.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"e7ad1ac06bda0bbe91ee438b8904b36a2fbd270c","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.9.0.tgz","fileCount":3,"integrity":"sha512-p1BNypnsrvd3/d1/ccjSwUbWe/4D19mjEKL/UG3hrRNCVI6SoOkq31fJ3nW/CwFSRwu5QV5Wfdr/yLos+Ralzw==","signatures":[{"sig":"MEQCIEfhIU793Gk9EGsnrl/tpoFlObY7j+xcqOkFLVf4Xn0bAiBVY+77tnb4XKzXtF5wqvjO1+B4JwJE5Gog4X6d0dsJGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42107},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"edf1abe0c0f2cea06d98788c884a1d8f6824986d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.9.0_1779142808686_0.9854077403783343","host":"s3://npm-registry-packages-npm-production"}},"0.9.1":{"name":"@akcanetwork/x402","version":"0.9.1","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@0.9.1","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"c21c0543be2a919e3f637c5b993d140cdbae2d4c","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-0.9.1.tgz","fileCount":3,"integrity":"sha512-k577WewAZJYebrzp+C68moy8PFI7WLwpkJ1GXPRTWT1y3o0MWs+56+58Y8tC8X4YOHPLKO+OkbPgbhzAn+Z1sw==","signatures":[{"sig":"MEUCIQCwE5uIlg/HwI0aBiIX2xiBRoWAsdxBzurwx4wkUgjqoAIgAp5rQ0iw0mmOSGsbvBAc3W5HA/jsQsAohiTWbF6TLuU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43769},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"edf1abe0c0f2cea06d98788c884a1d8f6824986d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{"@solana/web3.js":"^1.87.0","@solana/spl-token":"^0.4.0"},"_npmOperationalInternal":{"tmp":"tmp/x402_0.9.1_1779143581436_0.23249170199554992","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@akcanetwork/x402","version":"1.0.0","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","_id":"@akcanetwork/x402@1.0.0","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"dist":{"shasum":"512dce0f7e557c678df6519b524998272e8bb607","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-1.0.0.tgz","fileCount":3,"integrity":"sha512-aZd9T+/1abgpOxC2doXGEseWNr71i4Y4kAeWn9lCqYDtgyVJnDwcKloVDYm7SjcaFfafqFT2KuMebyCt1PHAtg==","signatures":[{"sig":"MEYCIQDFfoJxR1AA7/qxdBEV7WJspU8hIvToWYPlc2TUvNcoKgIhAL6FOZevz+oDGig6oyOcOqWh65/Gt0Ydc8JThVd8i1BJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46949},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"15dfaa6e8c7f26340a5cbc413ea874b0f98a5dec","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"_npmVersion":"11.7.0","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@solana/kit":"^2.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/x402_1.0.0_1779201814141_0.8125424128622858","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@akcanetwork/x402","version":"1.0.1","description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","type":"module","main":"src/index.js","exports":{".":"./src/index.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"author":{"name":"Akca Network"},"license":"MIT","dependencies":{"@solana/kit":"^2.1.0"},"gitHead":"15dfaa6e8c7f26340a5cbc413ea874b0f98a5dec","_id":"@akcanetwork/x402@1.0.1","_nodeVersion":"22.21.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-p9FIonghe3TYeN2CLK/ht0JNm6xtlPD+Y3btur5IcHunjnPibF/ymvgqUNPoJr9ZGrRKfmvBZkGrnCwaOzcjgw==","shasum":"c74e32cfec2d7677c7444fd793d88c38afd6ec68","tarball":"https://registry.npmjs.org/@akcanetwork/x402/-/x402-1.0.1.tgz","fileCount":3,"unpackedSize":47100,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDkAkNjYzwNTscvPyHe44khTnyM+AtOB29beTLCfdCDcAIgN0hu8W/AbEIPCaP5GkoDIg1yQHuFH5qRI326U3UK6To="}]},"_npmUser":{"name":"akcanetwork","email":"contact@akca.network"},"directories":{},"maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x402_1.0.1_1779202359093_0.8766357108527485"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-06T01:58:58.748Z","modified":"2026-05-19T14:52:39.398Z","0.1.0":"2026-03-06T01:58:58.961Z","0.1.1":"2026-03-06T02:28:22.787Z","0.2.0":"2026-03-06T02:45:28.988Z","0.2.1":"2026-03-06T02:46:08.071Z","0.2.2":"2026-03-06T03:00:50.092Z","0.3.0":"2026-04-14T19:22:31.409Z","0.3.1":"2026-04-14T19:24:47.497Z","0.3.2":"2026-04-14T19:29:35.405Z","0.4.0":"2026-04-19T23:47:27.872Z","0.4.1":"2026-04-21T16:51:06.429Z","0.4.2":"2026-04-21T17:16:00.829Z","0.4.3":"2026-05-12T06:49:26.172Z","0.5.0":"2026-05-14T14:24:22.276Z","0.6.0":"2026-05-16T15:59:24.148Z","0.7.0":"2026-05-18T20:02:04.486Z","0.8.0":"2026-05-18T22:07:47.885Z","0.8.1":"2026-05-18T22:09:45.438Z","0.9.0":"2026-05-18T22:20:08.870Z","0.9.1":"2026-05-18T22:33:01.620Z","1.0.0":"2026-05-19T14:43:34.326Z","1.0.1":"2026-05-19T14:52:39.252Z"},"author":{"name":"Akca Network"},"license":"MIT","keywords":["x402","proxy","vpn","solana","usdc","pay-per-use"],"description":"Akca x402 SDK - Pay-per-use proxy and VPN via Solana USDC","maintainers":[{"name":"akcanetwork","email":"contact@akca.network"}],"readme":"# @akcanetwork/x402\n\nPay-per-use anonymous proxy and VPN SDK with Solana USDC. Built on the [x402 protocol](https://akca.network/x402) (HTTP 402 + on-chain payments).\n\n## Installation\n\n```bash\nnpm install @akcanetwork/x402\n```\n\nIncludes `@solana/kit` for on-chain payments. No peer dependencies needed.\n\n## Three Ways to Use\n\n### 1. Subscriber (no wallet needed)\n\nVPN subscribers and NFT holders get proxy access included. Use your account token from the [Akca dashboard](https://dash.akca.network).\n\n```js\nimport { createSubscriberClient } from '@akcanetwork/x402';\n\nconst akca = createSubscriberClient({\n  accountToken: 'eyJ...your-account-token',\n});\n\n// No payment — included in subscription\nconst result = await akca.fetch('https://api.example.com/data', {\n  country: 'DE',\n});\nconsole.log(result.body);\n```\n\n### 2. Wallet keypair (automatic payment)\n\nThe SDK automatically signs a USDC transfer when it receives a 402 response.\n\n```js\nimport { AkcaX402Client } from '@akcanetwork/x402';\nimport { createKeyPairSignerFromBytes } from '@solana/kit';\nimport { readFileSync } from 'fs';\n\n// From a Solana CLI keypair file\nconst secret = JSON.parse(readFileSync('~/akca-wallet.json', 'utf8'));\nconst wallet = await createKeyPairSignerFromBytes(new Uint8Array(secret));\n\nconst akca = new AkcaX402Client({ wallet });\n\nconst result = await akca.fetch('https://api.example.com/data', {\n  country: 'DE',\n});\n// 402 -> auto-pay USDC -> 200 OK\nconsole.log(result.body);\n```\n\n**From a base58 private key:**\n\n```js\nimport { createKeyPairSignerFromBytes, getBase58Encoder } from '@solana/kit';\n\nconst bytes = getBase58Encoder().encode('your-base58-private-key');\nconst wallet = await createKeyPairSignerFromBytes(bytes);\nconst akca = new AkcaX402Client({ wallet });\n```\n\nMinimum balance: **0.01 USDC** + ~0.005 SOL for transaction fees.\n\n### 3. External wallet (Phantom MCP, etc.)\n\nNo keypair needed. The SDK returns payment details on 402 — pay externally and pass back the signature.\n\n```js\nconst akca = new AkcaX402Client(); // no wallet\n\nconst result = await akca.connectVpn({ serverId: 'awg-de-frankfurt-1' });\n// result.payment_required === true\n// result.amount_usdc === 0.50\n// result.pay_to === \"RECIPIENT_ATA_ADDRESS\"\n\n// ... pay via Phantom MCP transfer or any Solana wallet ...\n\nconst vpn = await akca.connectVpn({\n  serverId: 'awg-de-frankfurt-1',\n  paymentSignature: '5xYz...', // tx signature from your wallet\n});\n// vpn.config === WireGuard config\n```\n\n## API\n\n### `new AkcaX402Client(options?)`\n\n| Parameter | Type | Default |\n|-----------|------|---------|\n| `baseUrl` | `string` | `https://api.akca.network` |\n| `wallet` | `KeyPairSigner` | `undefined` (enables automatic payment) |\n| `rpcUrl` | `string` | Solana mainnet |\n| `accountToken` | `string` | `undefined` (enables subscriber access) |\n\n### `createSubscriberClient({ accountToken, baseUrl? })`\n\nShorthand for creating a client with subscriber access. Throws if `accountToken` is missing.\n\n### Proxy\n\n#### `akca.fetch(url, options?)`\n\nProxy a single HTTP request. Headers (User-Agent) are auto-rotated for bot detection avoidance.\n\n```js\n// Basic fetch (0.001 USDC)\nawait akca.fetch(url, { method, headers, body, country });\n\n// With IP rotation — each request uses a different exit node\nawait akca.fetch(url, { rotate: true, country: 'DE' });\n\n// With smart extract — parse HTML into structured data\nawait akca.fetch(url, { extract: 'text' });      // body text only\nawait akca.fetch(url, { extract: 'markdown' });  // clean markdown (best for AI)\nawait akca.fetch(url, { extract: 'links' });     // all links\nawait akca.fetch(url, { extract: 'metadata' });  // title, description, OG tags\nawait akca.fetch(url, { extract: 'tables' });    // table data\nawait akca.fetch(url, { extract: 'json' });      // JSON-LD structured data\n\n// With cookie jar — persist cookies across requests\nawait akca.fetch(loginUrl, { method: 'POST', body: creds, cookie_jar: 'sess1' });\nawait akca.fetch(dashboardUrl, { cookie_jar: 'sess1' }); // sends login cookies\n\n// With an external payment signature\nawait akca.fetch(url, { country: 'DE', paymentSignature: 'tx_sig...' });\n```\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `method` | `string` | HTTP method (default: GET) |\n| `headers` | `object` | Request headers (User-Agent auto-rotated if not set) |\n| `body` | `string\\|object` | Request body |\n| `country` | `string` | Exit country code (DE, US, JP...) |\n| `server_id` | `string` | Specific exit server ID |\n| `rotate` | `boolean` | Enable IP rotation (round-robin across exit nodes) |\n| `extract` | `string` | Smart extract mode: `text`, `markdown`, `links`, `metadata`, `tables`, `json` |\n| `cookie_jar` | `string` | Cookie jar ID — persist cookies across requests (30 min TTL) |\n| `paymentSignature` | `string` | Pre-made payment tx signature |\n\n#### `akca.batchFetch(urls, options?)`\n\nFetch multiple URLs in parallel. Up to 50 URLs per batch with configurable concurrency.\n\n```js\n// Simple — array of URL strings\nconst result = await akca.batchFetch([\n  'https://example.com/page1',\n  'https://example.com/page2',\n  'https://example.com/page3',\n]);\nconsole.log(result.count);   // 3\nconsole.log(result.results);  // [{url, status, body, proxy}, ...]\n\n// Advanced — per-URL method/headers\nconst result = await akca.batchFetch([\n  { url: 'https://api.example.com/users', method: 'GET' },\n  { url: 'https://api.example.com/posts', method: 'GET' },\n  { url: 'https://api.example.com/submit', method: 'POST', body: '{\"data\":1}' },\n], {\n  country: 'US',\n  rotate: true,\n  extract: 'text',\n  concurrency: 10,\n});\n```\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `method` | `string` | Default HTTP method for all URLs |\n| `headers` | `object` | Default headers for all URLs |\n| `country` | `string` | Exit country code |\n| `rotate` | `boolean` | IP rotation across batch requests |\n| `extract` | `string` | Smart extract mode |\n| `concurrency` | `number` | Max parallel requests (default 5, max 10) |\n| `cookie_jar` | `string` | Cookie jar ID for session persistence |\n| `paymentSignature` | `string` | Pre-made payment tx signature |\n\n#### `akca.search(query, options?)`\n\nSearch the web anonymously through proxy. Returns structured results (title, URL, snippet).\n\n```js\nconst result = await akca.search('solana x402 protocol', {\n  engine: 'duckduckgo', // or 'google'\n  country: 'US',\n  num_results: 10,\n});\nconsole.log(result.results); // [{title, url, snippet}, ...]\n```\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `engine` | `string` | Search engine: `duckduckgo` (default) or `google` |\n| `country` | `string` | Exit country code (affects search locality) |\n| `rotate` | `boolean` | Enable IP rotation |\n| `num_results` | `number` | Max results (default 10, max 20) |\n| `paymentSignature` | `string` | Pre-made payment tx signature |\n\n#### `akca.render(url, options?)`\n\nRender a page via headless browser through proxy and capture a screenshot. Returns a base64-encoded image. Includes free stealth mode for Cloudflare/bot bypass.\n\n```js\nconst result = await akca.render('https://example.com', {\n  country: 'DE',\n  viewport: { width: 1920, height: 1080 },\n  full_page: true,\n  format: 'png',\n  stealth: true, // bypass Cloudflare (free)\n  wait_for_selector: '#content', // wait for element before screenshot\n});\nconsole.log(result.title);       // page title\nconsole.log(result.screenshot);  // data:image/png;base64,...\nconsole.log(result.html_length); // rendered HTML size\n```\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `country` | `string` | Exit country code |\n| `server_id` | `string` | Specific proxy server ID |\n| `viewport` | `{width, height}` | Viewport dimensions (default: 1280x720) |\n| `full_page` | `boolean` | Capture full scrollable page (default: false) |\n| `format` | `string` | Image format: `png` (default) or `jpeg` |\n| `stealth` | `boolean` | Stealth mode — bypass Cloudflare/bot detection (free) |\n| `wait_for_selector` | `string` | CSS selector to wait for before screenshot |\n| `paymentSignature` | `string` | Pre-made payment tx signature |\n\n#### `akca.crawl(url, options?)`\n\nCrawl a website by discovering pages via `sitemap.xml` or link extraction, then fetch them all through proxy.\n\n```js\nconst result = await akca.crawl('https://example.com', {\n  max_pages: 20,\n  extract: 'text',\n  rotate: true,\n});\nconsole.log(result.pages_found);   // 20\nconsole.log(result.pages_fetched); // 20\nconsole.log(result.results);       // [{url, status, body, extracted}, ...]\n```\n\n| Option | Type | Description |\n|--------|------|-------------|\n| `max_pages` | `number` | Max pages to fetch (default 10, max 100) |\n| `extract` | `string` | Smart extract mode for all pages |\n| `country` | `string` | Exit country code |\n| `rotate` | `boolean` | IP rotation across crawl requests |\n| `cookie_jar` | `string` | Cookie jar ID for session persistence |\n| `paymentSignature` | `string` | Pre-made payment tx signature |\n\n#### `akca.createProxySession(options?)`\n\nCreate a 24-hour unlimited proxy session (1.00 USDC).\n\n```js\nawait akca.createProxySession({ country: 'DE' });\n// All subsequent fetch/batch/crawl calls use the session — no per-request payment\n```\n\n### VPN (Manual)\n\n```js\n// List servers (free)\nconst servers = await akca.getVpnServers();\n\n// Get pricing (free)\nconst pricing = await akca.getVpnPricing();\n\n// Connect (0.50 USDC / 24 hours)\nconst vpn = await akca.connectVpn({\n  serverId: servers[0].id,\n  duration: '24h', // '24h' | '7d' | '30d'\n});\nconsole.log(vpn.config); // WireGuard config\n\n// Connect with external payment\nconst vpn2 = await akca.connectVpn({\n  serverId: servers[0].id,\n  paymentSignature: 'tx_sig...',\n});\n\n// Disconnect\nawait akca.disconnectVpn(vpn.session.id);\n```\n\n### VPN Auto-Setup + Tunnel\n\n```js\nimport { quickVpn } from '@akcanetwork/x402';\n\n// One-liner: auto-install WireGuard + pay USDC + bring up tunnel\nconst vpn = await quickVpn({\n  wallet,\n  country: 'US',\n  duration: '24h',\n});\n// All system traffic is now routed through the VPN\n\nawait vpn.disconnect(); // tear down tunnel + remove peer\n```\n\n### VPN Manager (Advanced)\n\n```js\nimport { AkcaX402Client, AkcaVpnManager } from '@akcanetwork/x402';\n\nconst akca = new AkcaX402Client({ wallet });\nconst mgr = new AkcaVpnManager();\n\n// Auto-install AmneziaWG/WireGuard if missing\nconst info = await mgr.ensureInstalled();\n// { installed: true, binary: 'awg-quick', type: 'amneziawg' }\n\n// Connect and get config\nconst vpn = await akca.connectVpn({ serverId: 'us-virginia-1' });\n\n// Bring up tunnel (write config + wg-quick up)\nawait mgr.up(vpn.config);\n\n// Check status\nconst status = await mgr.status();\n\n// Tear down tunnel\nawait mgr.down();\nawait akca.disconnectVpn(vpn.session.id);\n```\n\n**Supported platforms:** Ubuntu/Debian (apt), Fedora/RHEL (dnf), Arch (pacman), macOS (brew).\nPrefers AmneziaWG (DPI bypass), falls back to standard WireGuard.\n\n## How x402 Works\n\n### With subscriber token\n\n1. SDK sends request with `Authorization: Bearer <accountToken>`\n2. API verifies subscription → returns response directly\n3. No payment needed\n\n### With wallet (automatic)\n\n1. SDK sends request to Akca API\n2. API returns `402 Payment Required` with USDC amount\n3. SDK creates and signs a Solana USDC transfer\n4. SDK retries with `X-PAYMENT: <tx-signature>` header\n5. API verifies on-chain, returns response + session cookie\n6. Subsequent requests use the session cookie (no re-payment)\n\n### Without wallet (Phantom MCP / external)\n\n1. SDK sends request to Akca API\n2. API returns `402 Payment Required`\n3. SDK returns `{ payment_required: true, amount_usdc, pay_to, ... }`\n4. Caller pays via external wallet (Phantom MCP, CLI, etc.)\n5. Caller retries with `paymentSignature` — SDK sends `X-PAYMENT` header\n6. API verifies on-chain, returns response\n\n## Pricing\n\n| Product | Tier | Price |\n|---------|------|-------|\n| Proxy | Single fetch | 0.001 USDC |\n| Proxy | Web search | 0.001 USDC |\n| Proxy | Batch fetch (up to 50 URLs) | 0.001 USDC |\n| Proxy | Page render / screenshot (stealth included) | 0.005 USDC |\n| Proxy | Sitemap crawl | 0.001 USDC |\n| Proxy | 24-hour session | 1.00 USDC |\n| VPN | 24 hours | 0.50 USDC |\n| VPN | 7 days | 2.00 USDC |\n| VPN | 30 days | 6.00 USDC |\n\n## License\n\nMIT - [Akca Network](https://akca.network)\n","readmeFilename":"README.md"}