Hyperliquid Vaults
Enter or exit Hyperliquid vaults, and deposit or withdraw funds.
Interact with Hyperliquid vaults: enter to follow a vault leader's strategy, or exit to reclaim your funds.
Uses the two-step POST /v1.2/safes/operations → PUT /v1.2/safes/operations flow.
1. Discover available Hyperliquid vaults
Retrieve active Hyperliquid vaults:
Each vault object contains poolAddress, name, apy, tvl, isDefault, and metadata with leader (vault leader address), isClosed, and relationship.
2. Enter a vault
Deposit funds into a Hyperliquid vault to follow a leader's trading strategy:
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "HYPERLIQUID_ENTER_VAULT" |
hyperliquidData.action | string | Yes | Must be "ENTER_VAULT" |
hyperliquidData.amount | number | Yes | Amount in USD to deposit |
After the Safe operation executes on-chain, the server calls the Hyperliquid API server-side to enter the vault.
3. Exit a vault
Withdraw from a Hyperliquid vault:
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "HYPERLIQUID_WITHDRAW_VAULT" |
hyperliquidData.action | string | Yes | Must be "WITHDRAW_VAULT" |
hyperliquidData.amount | number | Yes | Amount in USD to withdraw |
4. Deposit / Withdraw USDC
Transfer USDC to or from your Hyperliquid account:
5. Check positions
After entering a vault, check your Hyperliquid positions:
The response pools array contains a HYPERLIQUID provider entry. Each item includes:
| Field | Description |
|---|---|
vaultAddress | Vault address |
vaultName | Vault name |
equity | Current equity in the vault |
pnl | Profit and loss |
allTimePnl | All-time PnL |
daysFollowing | Days since entering the vault |
lockupUntil | Lockup expiry (null if none) |
apy | Estimated APY |
tvl | Vault total value locked |
leader | Vault leader address |
method | "HYPERLIQUID_API" — fetched via Hyperliquid stats API |