{"partialResults":false,"resources":[{"accepts":[{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0xdECE8E839414E4a99213C658ABbD2294d5BD42B0","scheme":"exact"}],"description":"Set cross or isolated leverage for a perp asset. Supply isCross and positive integer leverage; market limits apply. Sign the L1 preview and submit it unchanged to the returned submitPath (unpaid). Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is \"unifiedAccount\".","extensions":{"bazaar":{"info":{"input":{"body":{"action":{"asset":0,"isCross":true,"leverage":5,"type":"updateLeverage"},"nonce":1710000000000},"bodyType":"json","method":"POST","type":"http"},"output":{"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"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"accountAddress":{"description":"Signing account's address, returned as response metadata; not part of the signed action.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"action":{"additionalProperties":false,"description":"Leverage update action.","properties":{"asset":{"description":"Perp asset ID","minimum":0,"type":"integer"},"isCross":{"description":"true for cross margin, false for isolated.","type":"boolean"},"leverage":{"description":"Integer leverage; market limits apply","exclusiveMinimum":0,"type":"integer"},"type":{"const":"updateLeverage","description":"Always \"updateLeverage\".","type":"string"}},"required":["type","asset","isCross","leverage"],"type":"object"},"expiresAfter":{"description":"Millisecond timestamp after which Hyperliquid rejects the action. Signed with the action.","minimum":0,"type":"integer"},"nonce":{"description":"Action nonce in milliseconds since the epoch; defaults to the current time.","minimum":0,"type":"integer"},"vaultAddress":{"description":"Vault or subaccount to act for; omit to act for the signer. Signed with the action.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"}},"required":["action"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"iconUrl":"https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1793712289/bazaar-icons/18d1fcf093fb95b4.png","lastUpdated":"2026-11-30T08:04:48.857Z","quality":{"l30DaysTotalCalls":25,"l30DaysUniquePayers":5,"lastCalledAt":"2026-11-30T08:04:48.683Z"},"resource":"https://chainhilt.ai/api/v1/perp/hyperliquid/leverage/preview","serviceName":"chainhilt-x402","tags":["perp","hyperliquid","trading"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"5enkxrfvmhmsaaa"}}
