createSubAccount

post
/exchange

Create a sub-account.

Body

Create a sub-account.

nonceintegerRequired

Unique request identifier (current timestamp in ms).

expiresAfterintegerOptional

Expiration time of the action.

Responses
200

Response for creating a sub-account.

application/json
Responseany of

Response for creating a sub-account.

or
post
/exchange
POST /exchange HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 122

{
  "action": {
    "type": "createSubAccount",
    "name": "text"
  },
  "nonce": 1,
  "signature": {
    "r": "text",
    "s": "text",
    "v": 27
  },
  "expiresAfter": 1
}
{
  "status": "ok",
  "response": {
    "type": "createSubAccount",
    "data": "text"
  }
}

Last updated