{"_id":"@ampvaleo/x402-hyperliquid-client","name":"@ampvaleo/x402-hyperliquid-client","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ampvaleo/x402-hyperliquid-client","version":"0.1.0","description":"Sign and fetch helpers for x402 on Hyperliquid HyperCore","author":{"name":"Valeo Protocol"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/valeo-cash/x402-hyperliquid.git","directory":"packages/client"},"publishConfig":{"access":"public"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"dependencies":{"viem":"^2.21.54","@ampvaleo/x402-hyperliquid-core":"0.1.0"},"peerDependencies":{"ethers":"^6.0.0"},"peerDependenciesMeta":{"ethers":{"optional":true}},"devDependencies":{"@types/node":"^22.10.2","tsup":"^8.3.5","typescript":"^5.7.2","vitest":"^2.1.8"},"scripts":{"build":"tsup","test":"vitest run"},"_id":"@ampvaleo/x402-hyperliquid-client@0.1.0","bugs":{"url":"https://github.com/valeo-cash/x402-hyperliquid/issues"},"homepage":"https://github.com/valeo-cash/x402-hyperliquid#readme","_integrity":"sha512-rSHRljF/pPMuFS9j3oJWnDvsVYk61iChndq8F19024O1eGEl0/7RFRPBeWu/MsOA3FjYbG0LHabEkJZQhaR0Pw==","_resolved":"/private/var/folders/0y/870sgpg54w983l1j8ss1jljc0000gn/T/74eeda4daa6763d9e538c686cf1c020b/ampvaleo-x402-hyperliquid-client-0.1.0.tgz","_from":"file:ampvaleo-x402-hyperliquid-client-0.1.0.tgz","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-rSHRljF/pPMuFS9j3oJWnDvsVYk61iChndq8F19024O1eGEl0/7RFRPBeWu/MsOA3FjYbG0LHabEkJZQhaR0Pw==","shasum":"7be96de6d8bff2ba18f2c1fef311fcd744fc3c7a","tarball":"https://registry.npmjs.org/@ampvaleo/x402-hyperliquid-client/-/x402-hyperliquid-client-0.1.0.tgz","fileCount":9,"unpackedSize":35080,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBpPl9NEPTKZ9B8HNqp947lNlaOOqcD8bw8hoiNjsNubAiEAg6p+JM0eEmhZHgkAEJ/nnYN5GZsn+//mkqVpaQtASYg="}]},"_npmUser":{"name":"v402valeo","email":"valeobank@gmail.com"},"directories":{},"maintainers":[{"name":"v402valeo","email":"valeobank@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x402-hyperliquid-client_0.1.0_1776161880425_0.484447098282607"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-14T10:18:00.363Z","0.1.0":"2026-04-14T10:18:00.564Z","modified":"2026-04-14T10:18:00.737Z"},"maintainers":[{"name":"v402valeo","email":"valeobank@gmail.com"}],"description":"Sign and fetch helpers for x402 on Hyperliquid HyperCore","homepage":"https://github.com/valeo-cash/x402-hyperliquid#readme","repository":{"type":"git","url":"git+https://github.com/valeo-cash/x402-hyperliquid.git","directory":"packages/client"},"author":{"name":"Valeo Protocol"},"bugs":{"url":"https://github.com/valeo-cash/x402-hyperliquid/issues"},"license":"MIT","readme":"# @ampvaleo/x402-hyperliquid-client\n\nSign `sendAsset` payments and perform automatic x402 retries via `x402Fetch`.\n\n```ts\nimport { x402Fetch } from \"@ampvaleo/x402-hyperliquid-client\";\nimport { privateKeyToAccount } from \"viem/accounts\";\n\nconst account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);\nconst wallet = {\n  getAddress: async () => account.address,\n  signTypedData: (a) => account.signTypedData(a),\n};\n\nconst res = await x402Fetch(\"https://api.example.com/paid\", {}, wallet);\n```\n\nOptional **ethers v6** `Signer` helper: `createEthersWallet(signer)`.\n\nSee the [root README](../../README.md).\n","readmeFilename":"README.md","_rev":"1-3d610f7b51fcccfa6c4df5a708157b28"}