OnFinality
New RPC users get 35% off their first monthView the offer
OnFinality Learn
Network & Protocol Guides9 min read

HIP-1 on Hyperliquid: Native Tokens, Deployment, and Spot Trading

Understand how Hyperliquid HIP-1 defines native tokens, genesis balances, deployment economics, and spot-market behavior.

TL;DR

HIP-1 is Hyperliquid’s native token standard for capped-supply fungible tokens and the spot order books that trade pairs of those tokens. A deployment defines accounting precision, trading precision, maximum supply, optional genesis balances, and other initialization data; the resulting token is indexed by a globally unique deployment hash. This guide explains the model, shows how to inspect HIP-1 data through an API endpoint, and provides a verification and troubleshooting workflow without assuming a particular provider or inventing deployment credentials. For endpoint selection and production RPC design, compare the guidance in the [Hyperliquid RPC performance guide](/en/learn/which-rpc-provider-offers-the-highest-performance-for-hyperliquid).

HIP-1 scope and terminology

In the Hyperliquid context, HIP-1 means the native token standard, not HIP1, the human gene known as huntingtin-interacting protein 1. HIP-1 defines a capped-supply fungible token and supports onchain spot order books between HIP-1 tokens. The standard is therefore both a token-accounting model and part of the market-creation workflow on Hyperliquid.

A HIP-1 token is not identified safely by a short ticker alone. The deployment transaction generates a globally unique hash that execution logic uses to index the token. Names are human-readable labels, while the deployment identity is the durable reference that applications should persist and validate.

This distinction matters for wallets, indexers, bridges, and trading interfaces: display symbols are convenient for people, but token identity, decimals, supply, and market metadata must come from the network’s authoritative response rather than from user input.

  • HIP-1: Hyperliquid’s native capped-supply fungible token standard.
  • HIP-2: Related Hyperliquid functionality referenced by HIP-1 for Hyperliquidity initialization.
  • HIP1: A separate biological term that is unrelated to Hyperliquid tokens.

Token parameters and accounting rules

The sender of a HIP-1 token genesis transaction specifies the token’s core parameters. The name is human-readable, may contain up to six characters according to the documented specification, and does not have to be globally unique. Applications should consequently treat the deployment identity as authoritative instead of assuming that a name is unique.

weiDecimals describes the conversion between the smallest integer unit and the human-readable token amount. For example, a balance represented in integer units is displayed by dividing by 10 to the power of weiDecimals. This is an accounting precision, not necessarily the precision users can trade.

szDecimals is the minimum number of token decimals supported by spot order books. The documented lot-size relationship is 10 to the power of weiDecimals minus szDecimals. HIP-1 also requires szDecimals plus five to be less than or equal to weiDecimals. Validate this constraint before attempting deployment or market integration.

maxSupply is the maximum and initial supply specified at genesis. The documented model allows supply to decrease over time through spot order-book fees or future burn mechanisms, so an application should not assume that the initial maximum and later circulating supply are interchangeable.

  • name: display label with a maximum length constraint.
  • weiDecimals: smallest-unit accounting precision.
  • szDecimals: tradable precision and effective lot-size setting.
  • maxSupply: maximum and initial supply at deployment.
  • initialWei: optional address-to-balance genesis allocations.
  • anchorTokenWei: optional proportional genesis allocation based on existing HIP-1 balances.
  • hyperliquidityInit: optional initialization parameters for the USDC spot pair.

Genesis balances and deployment economics

A deployment can include initialWei balances, such as an allocation to a treasury, multisig, or initial bridge mint. It can also use anchorTokenWei to distribute genesis balances proportionally to holders of an existing HIP-1 token. These allocations are part of token initialization and should be reviewed as carefully as the supply and decimal fields.

The documented anchor-token rule uses an account’s anchor balance and a threshold based on 1e-6 multiplied by the anchor token’s maximum supply at the time of genesis. If the resulting value is negative, the holder receives no genesis tokens. The documentation describes this as requiring at least 0.0001% of the anchor token’s maximum supply at genesis to be included. Use the official specification and a checked implementation for exact integer arithmetic; do not reproduce the calculation with floating-point values.

Deployment gas is paid in the native Hyperliquid token. The documented deployment mechanism uses a Dutch auction lasting 31 hours, with the deployment gas decreasing linearly from an initial price to 500 HYPE. The initial price is described as 500 HYPE if the previous auction failed to complete, otherwise twice the last gas price. These values and rules are protocol behavior that can change, so production tooling should read the current documentation and network state before submitting.

A deployment is not merely an ERC-20 contract deployment. Do not send an EVM contract-creation transaction or assume that an EVM token ABI applies. Obtain the current official HIP-1 action schema, signing requirements, and account permissions before implementing a deployer.

  • Treat all allocation and supply values as integer units.
  • Use decimal-safe arithmetic when calculating display values or allocation thresholds.
  • Record the deployment hash, parameter payload, signer, and resulting metadata for auditability.
  • Budget native-token gas separately from any later bridge, market, or liquidity costs.

Spot-market behavior and precision

HIP-1 supports onchain spot order books between pairs of HIP-1 tokens. A market integration must therefore handle both token metadata and order-book constraints. The token’s weiDecimals governs balances, while szDecimals governs the minimum tradable size. Confusing the two can produce orders that are numerically valid as balances but invalid as market quantities.

The HIP-1 documentation also describes initialization parameters for a USDC spot pair through hyperliquidityInit and refers to HIP-2 for more detail. Treat this as a protocol-specific initialization path rather than assuming that every token automatically has identical liquidity or market behavior.

Trading fees can affect supply, and the documentation includes a spot-dust conversion section. Dust handling is especially important for indexers and accounting systems: a balance that is too small for normal order placement may still appear in account or market data until the protocol’s conversion rules apply.

Before enabling trading, calculate quantities in integer units, round according to the market’s permitted precision, and reject values that exceed maxSupply or violate the order book’s lot size. Keep the original user-entered decimal amount for display, but submit only a validated integer representation.

  • Balance precision and order-size precision are separate controls.
  • A short token name is not a unique market identifier.
  • USDC-pair initialization may have additional protocol-specific parameters.
  • Fee and dust behavior can change the relationship between gross issuance and observed balances.

Metadata inspection with the Hyperliquid API

Start integration by reading the network’s published spot metadata and asset context instead of hard-coding token indexes or decimal settings. The following diagnostic request uses RPC_URL as a placeholder for the API or gateway URL supplied by your infrastructure. It is intentionally read-only and does not submit a transaction.

A generic EVM JSON-RPC endpoint may not expose Hyperliquid’s application API shape. Confirm that the selected endpoint supports the required Hyperliquid request before placing it in production. See the RPC endpoints guide for a broader endpoint-selection framework and OnFinality API Service for service documentation.

  • Set RPC_URL to the complete URL provided by your gateway or API service.
  • Save the raw response with a timestamp and request identifier during integration testing.
  • Confirm that the response includes the metadata fields your application requires before adding trading logic.
curl -sS "$RPC_URL" \
  -H 'Content-Type: application/json' \
  --data '{"type":"spotMetaAndAssetCtxs"}' | jq .

A reproducible metadata validation routine

The next example performs basic structural checks in JavaScript. It does not deploy a token, sign an exchange action, or claim that a particular response shape is permanent. Adapt the field paths to the current official API documentation and fail closed when metadata is missing or inconsistent.

The useful result is a validated local model: a token identity, accounting precision, trading precision, and a check that the precision relationship is legal. Do not use a ticker-only lookup when multiple deployments can share a display name.

  • Use BigInt or a decimal library for balances and supply; JavaScript Number is not safe for arbitrary large integer quantities.
  • Resolve tokens by deployment identity or a verified composite key, not by name alone.
  • Keep metadata refreshes separate from signed transaction submission.
const RPC_URL = process.env.RPC_URL;
if (!RPC_URL) throw new Error('Set RPC_URL');

const response = await fetch(RPC_URL, {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ type: 'spotMetaAndAssetCtxs' })
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const payload = await response.json();

const meta = payload[0] ?? payload;
const tokens = meta.tokens ?? meta.universe ?? [];
if (!Array.isArray(tokens)) throw new Error('Token metadata array not found');

for (const token of tokens) {
  const weiDecimals = Number(token.weiDecimals);
  const szDecimals = Number(token.szDecimals);
  if (!Number.isInteger(weiDecimals) || !Number.isInteger(szDecimals)) {
    throw new Error(`Missing decimal metadata for ${JSON.stringify(token)}`);
  }
  if (szDecimals + 5 > weiDecimals) {
    throw new Error(`Invalid HIP-1 precision relationship for ${token.name ?? 'unknown'}`);
  }
  console.log({ name: token.name, weiDecimals, szDecimals });
}

Verification results and measurement procedure

A successful read should return a parseable metadata response, identify the token or market data you requested, and pass the precision constraint. For deployment testing, verification should additionally confirm the resulting deployment identity, configured decimals, maximum supply, genesis allocations, and any intended spot-pair initialization against an independent read path.

Do not report latency, throughput, or reliability numbers without measuring them from your own region, workload, and endpoint. Use a fixed request set, record HTTP status and response errors, and separate gateway time from confirmation or indexing time. The following table is a results-table procedure; fill it with your observations rather than assumed values.

TestRequest and conditionsRecordAcceptance check
Metadata readRepeat the same read-only metadata request from the target runtimeTimestamp, status, total duration, response sizeValid JSON and required fields present
ConsistencyQuery the same token through two independent reads or providersToken identity, decimals, supply, and market fieldsValues agree or differences are explained by update timing
Precision validationTest valid and invalid decimal quantitiesSubmitted integer quantity and rejection reasonInvalid lot sizes are rejected before signing
Deployment observationSubmit only through an approved test process and official schemaTransaction identifier, deployment hash, resulting metadataOnchain/indexed metadata matches the signed intent
RecoveryRepeat after a timeout or transient errorRetry count, duplicate-submission outcomeRetry is idempotent or safely halted

  • Keep raw responses and normalized records so a later protocol change can be diagnosed.
  • Measure confirmation separately from API acceptance.
  • Never infer successful deployment solely from a client-side submission response.

Common integration failures

A name collision is usually an application-design error, not a protocol failure. Resolve the asset by its deployment identity and display the name only as a label. If an indexer shows two assets with the same name, preserve both records rather than overwriting one.

Decimal errors commonly appear when a UI uses weiDecimals for order size or szDecimals for wallet balances. Store integer balances, convert for display with the correct accounting precision, and validate order quantities against the market precision before signing.

A rejected deployment may result from an invalid precision relationship, malformed initialization fields, insufficient native-token balance, an outdated action schema, or an auction-state assumption that is no longer true. Capture the complete request context, but redact private keys and signatures from logs.

Missing or stale metadata can also be an infrastructure problem. Compare a read from the configured endpoint with an independent read path, inspect HTTP and application-level errors, and check whether your cache is older than the network update you are trying to observe. For broader failure isolation, use the blockchain node hosting guide.

  • Do not retry an unknown signed submission blindly; first determine whether it was accepted.
  • Check application-level error objects even when HTTP status is successful.
  • Treat cache freshness and indexing delay as separate from transaction finality.
  • Use a dedicated operational path when public or shared capacity cannot meet your consistency requirements.

Design tradeoffs and operational boundaries

HIP-1’s native design can provide protocol-level accounting and spot-market integration without treating the asset as an EVM contract. The tradeoff is that EVM assumptions, familiar ABIs, and generic contract-deployment tooling do not automatically apply. Teams must implement the current Hyperliquid transaction and metadata model instead.

A hosted endpoint is usually the fastest way to begin read-only discovery and application development, while a dedicated or self-managed infrastructure path can provide more control over capacity, observability, and isolation. The right choice depends on traffic shape and operational requirements, not on an unverified universal performance claim. Review OnFinality RPC pricing, dedicated node options, and the multi-chain RPC endpoints guide before committing to a production architecture.

Caching improves application responsiveness but introduces staleness risk around token listings, supply changes, dust conversion, and market state. Use short-lived caches for rapidly changing data, invalidate on relevant events where available, and retain the block, timestamp, or response context used to produce an account or market view.

  • Choose hosted infrastructure for speed of delivery and managed operations.
  • Choose dedicated capacity when isolation, predictable access, or custom observability is more important.
  • Use independent reads for high-value deployment and treasury verification.
  • Document which values are authoritative, cached, derived, or user supplied.

Production readiness checklist

Before releasing a HIP-1 integration, complete the protocol and infrastructure checks below. A successful metadata query is only the first milestone; production readiness also requires safe signing, idempotent recovery, and clear accounting for genesis and market activity.

Keep the official HIP-1 and current Hyperliquid API documentation in your change-review process. Protocol parameters, gas-auction behavior, endpoint capabilities, and response schemas can change. This article describes the supplied documented model and an implementation method; it is not a substitute for checking the live specification immediately before deployment.

  • Confirm the current HIP-1 deployment schema and signing flow.
  • Validate name, weiDecimals, szDecimals, maxSupply, and all optional initialization fields.
  • Use integer-safe arithmetic for supply, balances, anchor allocations, fees, and dust.
  • Persist deployment identity separately from the display name.
  • Verify genesis balances and spot metadata through an independent read.
  • Test rejected precision, insufficient balance, timeout, duplicate-submission, and stale-cache paths.
  • Keep PRIVATE_KEY, signing material, and raw signatures out of source control and ordinary logs.
  • Record endpoint, region, request latency, response errors, and confirmation observations for your own capacity decision.
  • Link your application’s market and token records to the authoritative deployment identity.

Next steps for HIP-1 builders

Begin with read-only metadata discovery, build a normalized token model, and add precision and identity checks before implementing any signed action. Then test genesis and market workflows in an isolated environment using the current official schemas and a controlled signer. Once the application passes the verification and recovery tests, select endpoint capacity based on measured workload rather than a generic provider claim.

For infrastructure planning, start with Hyperliquid RPC provider guidance, compare service requirements in the API Service documentation, and document the exact endpoint behavior your application depends on. This keeps HIP-1 logic portable while making operational assumptions explicit.

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started