Input Schema
{
"body": {
"action": {
"asset": 0,
"isCross": true,
"leverage": 5,
"type": "updateLeverage"
},
"nonce": 1710000000000
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"response": {
"actions": [
{
"chainId": 42161,
"data": {
"action": {
"asset": 0,
"isCross": true,
"leverage": 5,
"type": "updateLeverage"
},
"nonce": 1710000000000,
"typedData": {
"domain": {
"chainId": 1337,
"name": "Exchange",
"verifyingContract": "0x0000000000000000000000000000000000000000",
"version": "1"
},
"message": {
"connectionId": "0x1b6c24cfbc406e6ceef5dfa941dcdabe39aa07e6fe967545327c1c4c29bc8b20",
"source": "a"
},
"primaryType": "Agent",
"types": {
"Agent": [
{
"name": "source",
"type": "string"
},
{
"name": "connectionId",
"type": "bytes32"
}
],
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
},
{
"name": "verifyingContract",
"type": "address"
}
]
}
}
},
"protocol": "hyperliquid",
"submitPath": "/perp/hyperliquid/leverage/execute",
"type": "signature"
}
],
"errors": [],
"warnings": []
}
},
"type": "json"
}