@avalabs/hypercore-module

中文文档
5.0.1发布于 2026/10/22Limited Ecosystem LicenseTypeScriptESM + CJS构建来源已验证近 30 天下载 1883

Read-only VM module for Hyperliquid HyperCore (spot balances, token registry, and activity).

原始使用文档
文档目录4 节
  1. Identity
  2. Capabilities
  3. Balances
  4. Installation

HyperCore Module

Read-only VM module for Hyperliquid HyperCore (spot balances, token registry, and activity).

Identity

FieldValue
Package@avalabs/hypercore-module
CAIP-2hlcore:mainnet
NetworkVMTypeHYPERCORE
Numeric chainId9999 (Core network-list id only; not an EVM chain id)
AddressesEIP-55 EVM addresses (same as addressC); derivation is keyed as HYPERCORE

HyperEVM (eip155:999) is a normal EVM chain and stays on @avalabs/evm-module.

Capabilities

Implemented: getBalances, getTokens, getTransactionHistory, getManifest, EVM-style deriveAddress / deriveAddresses / buildDerivationPath / getAddress (results keyed HYPERCORE).

Unsupported (loud reject / methodNotSupported): getProvider, getNetworkFee, onRpcRequest. HyperCore has no RPC, gas model, or dApp methods in this module.

Balances

  • USDC is TokenType.NATIVE (unit of account at $1).
  • Other spot inventory is TokenType.HYPERCORE_SPOT (identity is spot index; optional evmContract when bridged to HyperEVM).
  • Perp collateral (ex-unrealized PnL) folds into USDC except for unifiedAccount mode. Open perp positions are not listed.

Installation

pnpm add @avalabs/hypercore-module

版本与发布记录

@avalabs/hypercore-module 共发布 81 个版本,首次发布于 2026/07/15;过去 12 个月发布了 81 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.0.1latest2026/10/2217 天前
0.0.0-fix-eip712-domain-chain-id-202610211247362026/10/2117 天前
0.0.0-fix-eip712-domain-chain-id-202610161052402026/10/1623 天前
5.0.02026/10/0830 天前
0.0.0-feat-avalanche-tx-detail-chang-202610080807512026/10/081 个月前
0.0.0-feat-avalanche-tx-detail-chang-202610080658182026/10/081 个月前

其他发布通道:feat-add-hyperliquid-modules → 0.0.0-feat-add-hyperliquid-modules-20260716180923,fix-svm-handle-failed-simulati → 0.0.0-fix-svm-handle-failed-simulati-20260717145204,fix-acp-236-alignment → 0.0.0-fix-acp-236-alignment-20260717164413,feat-enable-hypercore-withdraw → 0.0.0-feat-enable-hypercore-withdraw-20260721184800,feat-is-privacy-enabled-tx → 0.0.0-feat-is-privacy-enabled-tx-20260722095724,fix-glacier-RL-key-for-avalanc → 0.0.0-fix-glacier-RL-key-for-avalanc-20260722115532。

关于 @avalabs/hypercore-module 的常见问题

@avalabs/hypercore-module 是什么?

Read-only VM module for Hyperliquid HyperCore (spot balances, token registry, and activity).

如何安装 @avalabs/hypercore-module?

在项目目录运行 npm install @avalabs/hypercore-module,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:ethers(6.13.5)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@avalabs/hypercore-module 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@avalabs/hypercore-module 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@avalabs/hypercore-module 可以商用吗?

@avalabs/hypercore-module 使用 Limited Ecosystem License 许可。声明的许可为 Limited Ecosystem License,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@avalabs/hypercore-module 的下载量有多少?

根据 npm 官方下载统计,@avalabs/hypercore-module 在 2026/10/07 – 2026/11/05 这 30 天内被下载 1,883 次,日均约 63 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@avalabs/hypercore-module 还在维护吗?

最新版本 5.0.1 发布于 2026/10/22(17 天前);至今共发布 81 个版本,其中过去 12 个月发布了 81 个;首次发布于 2026/07/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。