sendAsset

post
/exchange

Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts.

Body

Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts.

nonceintegerRequired

Unique request identifier (current timestamp in ms).

Responses
200

Successful response without specific data or error response.

application/json
Responseany of

Successful response without specific data or error response.

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

{
  "action": {
    "type": "sendAsset",
    "signatureChainId": "text",
    "hyperliquidChain": "Mainnet",
    "destination": "text",
    "sourceDex": "text",
    "destinationDex": "text",
    "token": "text",
    "amount": "text",
    "fromSubAccount": "",
    "nonce": 1
  },
  "nonce": 1,
  "signature": {
    "r": "text",
    "s": "text",
    "v": 27
  }
}
{
  "status": "ok",
  "response": {
    "type": "default"
  }
}

Last updated