hyperliquid_submit
hyperliquid_submitSends a Hyperliquid action prepared by /hyperliquid/prepare and signed by the wallet (eth_signTypedData_v4) to the exchange: order, cancel, leverage change or builder-fee approval. Returns the exchange result per order (resting with its id, filled with size and average price, or the rejection reason). The signature is forwarded as-is; no key ever reaches the server. Price: $0.002 USDC per call (x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"nonce": "<nonce>",
"signature": "<signature>"
},
"name": "hyperliquid_submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | The nonce returned by /prepare | |
| action | Yes | The action object returned by /prepare, unchanged | |
| signature | Yes | 0x-prefixed 65-byte signature from eth_signTypedData_v4 over typed_data | |
| vault_address | No | Optional vault or sub-account address the action is for |