Getting started

Staking in the Hyperliquid network using the Staking API consists of several main steps:

  1. Transfer HYPE from spot balance to staking balance.

  2. Create a delegate transaction.

  3. Sign it and send it to the network.

Get an authentication tokenarrow-up-right to start using Staking API.

We provide two distinct endpoints for testing and production environments.

For Hyperliquid, there are two networks available:

  • mainnet — the production network.

  • testnet — Hyperliquid testnet.

Staking on Hyperliquid happens within HyperCore, and HYPE is required to be in the staking balance. Just like USDC can be transferred between perps and spot accounts, HYPE can be transferred between spot and staking accounts.

1. [Optional] Transfer HYPE from Spot to Staking balance

Send a POST request to /api/v1/hyperliquid/{network}/staking/transfer endpointarrow-up-right.

Use unsignedTransaction returned in the response, then sign and sendarrow-up-right the transaction to Hyperliquid network. After this transaction has been successfully executed, the delegator staking balance can use this balance to delegate to the P2P validator. Transfers from spot account to staking account are instant.

2. Delegate Transaction

Send a POST request to /api/v1/hyperliquid/{network}/staking/delegate endpointarrow-up-right.

Use unsignedTransaction returned in the response, then sign and sendarrow-up-right the transaction to Hyperliquid network. After this transaction has been successfully executed, the delegator is actively participating in staking through the P2P validator. Be aware that delegations have a lockup duration of 1 day, which means that only after this period, delegations can be partially or fully undelegated.

Rewards are accrued every minute and distributed to stakers every day. Rewards are redelegated automatically to the staked validator, i.e. compounded.

3. Sign and Send Transaction

The requests to transfer hype from spot to staking balancearrow-up-right, delegatearrow-up-right, undelegatearrow-up-right and withdrawarrow-up-right return an unsignedTransaction that needs to be signed and broadcasted using the send transaction endpointarrow-up-right.

4. Check delegator staking balances

To check the delegator active balances for HYPE spot balance, stake balance, active delegations and pending withdrawals, use the get delegator staking information endpointarrow-up-right.

Last updated