curl --request POST \
--url https://api.hyperliquid.xyz/exchange \
--header 'Content-Type: application/json' \
--data '
{
"action": {
"type": "CValidatorAction",
"register": {
"profile": {
"node_ip": {
"Ip": "1.2.3.4"
},
"name": "My Validator",
"description": "A Hyperliquid validator node",
"delegations_disabled": false,
"commission_bps": 1000,
"signer": "0x1234567890abcdef1234567890abcdef12345678"
},
"unjailed": false,
"initial_wei": 0
}
},
"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": "CValidatorAction",
"register": {
"profile": {
"node_ip": {
"Ip": "1.2.3.4"
},
"name": "My Validator",
"description": "A Hyperliquid validator node",
"delegations_disabled": false,
"commission_bps": 1000,
"signer": "0x1234567890abcdef1234567890abcdef12345678"
},
"unjailed": false,
"initial_wei": 0
}
},
"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 "CValidatorAction"payload (object) — Validator action payloadnonce (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": "CValidatorAction"},
"nonce": 1234567890123,
"signature": {...}
}'
Was this page helpful?