@avalabs/hypercore-module
v4.1.0
Published
Read-only VM module for Hyperliquid **HyperCore** (spot balances, token registry, and activity).
Downloads
2,407
Keywords
Readme
HyperCore Module
Read-only VM module for Hyperliquid HyperCore (spot balances, token registry, and activity).
Identity
| Field | Value |
| ----------------- | ----------------------------------------------------------------------------- |
| Package | @avalabs/hypercore-module |
| CAIP-2 | hlcore:mainnet |
| NetworkVMType | HYPERCORE |
| Numeric chainId | 9999 (Core network-list id only; not an EVM chain id) |
| Addresses | EIP-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 spotindex; optionalevmContractwhen bridged to HyperEVM). - Perp collateral (ex-unrealized PnL) folds into USDC except for
unifiedAccountmode. Open perp positions are not listed.
Installation
pnpm add @avalabs/hypercore-module