{"_id":"@ampvaleo/x402-hyperliquid-core","name":"@ampvaleo/x402-hyperliquid-core","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ampvaleo/x402-hyperliquid-core","version":"0.1.0","description":"Types, EIP-712, and encoding 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/core"},"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"},"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-core@0.1.0","bugs":{"url":"https://github.com/valeo-cash/x402-hyperliquid/issues"},"homepage":"https://github.com/valeo-cash/x402-hyperliquid#readme","_integrity":"sha512-jCUEJkVHSEEVdIkujwZ8ruWoddQyz1KV4RJdDIAzW5S1pHSmaX+AhzSVuGhcvT5obmKsnpQE037czqWwgXObQQ==","_resolved":"/private/var/folders/0y/870sgpg54w983l1j8ss1jljc0000gn/T/cb0b15d89385290d7f6437ccc3364f16/ampvaleo-x402-hyperliquid-core-0.1.0.tgz","_from":"file:ampvaleo-x402-hyperliquid-core-0.1.0.tgz","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-jCUEJkVHSEEVdIkujwZ8ruWoddQyz1KV4RJdDIAzW5S1pHSmaX+AhzSVuGhcvT5obmKsnpQE037czqWwgXObQQ==","shasum":"e480e541945d29356b6517f487d381bb17c660d4","tarball":"https://registry.npmjs.org/@ampvaleo/x402-hyperliquid-core/-/x402-hyperliquid-core-0.1.0.tgz","fileCount":9,"unpackedSize":53062,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCuuSlxj5zI6nKBwRFNFwndbDeXoMtoFUf9Fehe0zlzRwIgBjaE9136HUrFkP7rWUse2bFIAlG0q6AKg+jDoeHi+F4="}]},"_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-core_0.1.0_1776161864356_0.01573753983099868"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-14T10:17:44.298Z","0.1.0":"2026-04-14T10:17:44.508Z","modified":"2026-04-14T10:17:45.080Z"},"maintainers":[{"name":"v402valeo","email":"valeobank@gmail.com"}],"description":"Types, EIP-712, and encoding 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/core"},"author":{"name":"Valeo Protocol"},"bugs":{"url":"https://github.com/valeo-cash/x402-hyperliquid/issues"},"license":"MIT","readme":"# @ampvaleo/x402-hyperliquid-core\n\nTypes, Hyperliquid chain constants, canonical EIP-712 `HyperliquidTransaction:SendAsset` helpers, and Base64 JSON helpers for the `X-PAYMENT` header.\n\n```ts\nimport { buildSendAssetTypedData, testnet } from \"@ampvaleo/x402-hyperliquid-core\";\n\nconst typed = buildSendAssetTypedData({\n  chainId: testnet.chainId,\n  message: {\n    hyperliquidChain: \"Testnet\",\n    destination: \"0x…\",\n    sourceDex: \"spot\",\n    destinationDex: \"spot\",\n    token: \"USDC:0x…\",\n    amount: \"0.01\",\n    fromSubAccount: \"\",\n    nonce: 1_700_000_000_000n,\n  },\n});\n```\n\nSee the [root README](../../README.md) for context.\n","readmeFilename":"README.md","_rev":"1-d9914a96e2aa36053dcf0289ded3e418"}