Skip to main content
sdk.submitHyperliquidAction is a thin relay for pre-signed Hyperliquid exchange payloads. It POSTs to /api/v1/hyperliquid/exchange, which forwards the already-signed action to Hyperliquid and returns the mapped result. The SDK never signs — the caller signs the EIP-712 typed data from the preceding hyperliquid* tool result.
The request carries the unsigned action verbatim, the nonce the signature commits to, the { r, s, v } signature split, the network ('mainnet' | 'testnet'), and an optional integrity hmac. The response is { success, status, oid?, avgPx?, totalSz?, error? } where status is 'filled' | 'resting' | 'error' | 'rebuilt'.