Create sub-account
Hyperliquid node API
createSubAccount | Hyperliquid exchange
Creates a new sub-account under the user’s main account. Sub-accounts have separate positions and margins but share the parent’s authentication.
POST
Create sub-account
Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
You can only use this endpoint on the official Hyperliquid public API. It is not available through Chainstack, as the open-source node implementation does not support it yet. See Hyperliquid methods for the full availability breakdown.
This endpoint requires signature authentication. See our comprehensive Authentication via Signatures guide for implementation details.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
Required parameters
action(object, required) — The action object containing:type(string) — Must be"createSubAccount"name(string) — Sub-account name
nonce(number, required) — Current timestamp in milliseconds (must be recent)signature(object, required) — EIP-712 signature of the action
Optional parameters
vaultAddress(string, optional) — Address when trading on behalf of a vault or subaccount
Returns
Returns an object with the action status:status—"ok"if request processedresponse— Contains action result data
Example request
cURL
Use case
- Create sub-account — Creates a new sub-account under the user’s main account. Sub-accounts have separate positions and margins but share the parent’s authentication.
Body
application/json
Last modified on May 18, 2026