Exchange API calls do not consume Quicknode API credits. Transactions through this endpoint are appended with a builder fee. See hyperliquidapi.com for a full breakdown. To white-label with your own builder code, contact us.
This endpoint is not a drop-in replacement for Hyperliquid's native /exchange endpoint. See the Exchange API Overview for key differences.
Body Parameters
- actionobjectREQUIRED
Wire-format userOutcome action from the Build Outcome Action response
- typestring
Always "userOutcome"
- splitOutcomeobject
Sub-object for outcomeSplit actions. Contains outcome (integer) and amount (string).
- mergeOutcomeobject
Sub-object for outcomeMerge actions. Contains outcome (integer) and amount (string).
- mergeQuestionobject
Sub-object for outcomeMergeQuestion actions. Contains question (integer) and amount (string).
- negateOutcomeobject
Sub-object for outcomeNegate actions. Contains question (integer), outcome (integer), and amount (string).
- nonceintegerREQUIRED
Nonce from the Build Outcome Action response (timestamp in milliseconds)
- signatureobjectREQUIRED
ECDSA signature of the hash from Build Outcome Action
- rstring
Signature r value (0x-prefixed hex string)
- sstring
Signature s value (0x-prefixed hex string)
- vinteger
Signature v value (27 or 28)
Returns
- successboolean
Whether the action was successfully submitted
- userstring
User address (0x-prefixed hex string)
- exchangeResponseobject
Response from Hyperliquid exchange