curl --request POST \
--url https://api.hyperliquid.xyz/exchange \
--header 'Content-Type: application/json' \
--data '
{
"action": {
"type": "sendAsset",
"hyperliquidChain": "Mainnet",
"signatureChainId": "0xa4b1",
"destination": "0x1234567890abcdef1234567890abcdef12345678",
"sourceDex": "HL",
"destinationDex": "HL",
"token": "PURR:0x1",
"amount": "100.0",
"fromSubAccount": "",
"nonce": 1705234567890
},
"nonce": 1705234567890,
"signature": {
"r": "0x0000000000000000000000000000000000000000000000000000000000000000",
"s": "0x0000000000000000000000000000000000000000000000000000000000000000",
"v": 27
},
"vaultAddress": null
}
'{
"status": "<string>",
"response": {}
}curl --request POST \
--url https://api.hyperliquid.xyz/exchange \
--header 'Content-Type: application/json' \
--data '
{
"action": {
"type": "sendAsset",
"hyperliquidChain": "Mainnet",
"signatureChainId": "0xa4b1",
"destination": "0x1234567890abcdef1234567890abcdef12345678",
"sourceDex": "HL",
"destinationDex": "HL",
"token": "PURR:0x1",
"amount": "100.0",
"fromSubAccount": "",
"nonce": 1705234567890
},
"nonce": 1705234567890,
"signature": {
"r": "0x0000000000000000000000000000000000000000000000000000000000000000",
"s": "0x0000000000000000000000000000000000000000000000000000000000000000",
"v": 27
},
"vaultAddress": null
}
'{
"status": "<string>",
"response": {}
}action (object, required) — The action object containing:
type (string) — Must be "sendAsset"hyperliquidChain (string) — Chain identifierdestination (string) — Recipient addresstoken (string) — Token to sendamount (string) — Amount to sendtime (integer) — Current timestamp in millisecondsnonce (number, required) — Current timestamp in milliseconds (must be recent)signature (object, required) — EIP-712 signature of the actionvaultAddress (string, optional) — Address when trading on behalf of a vault or subaccountstatus — "ok" if request processedresponse — Contains action result datacurl -X POST https://api.hyperliquid.xyz/exchange \
-H "Content-Type: application/json" \
-d '{
"action": {"type": "sendAsset"},
"nonce": 1234567890123,
"signature": {...}
}'
Was this page helpful?