{"slug":"chainhilt-ai-api-v1-perp-hyperliquid-user-abstraction-previe-b6acfd","title":"Prepare a user-signed abstraction change","host":"chainhilt.ai","method":"POST","resource":"https://chainhilt.ai/api/v1/perp/hyperliquid/user-abstraction/preview","category":"code","description":"Prepare a user-signed abstraction change: disabled, unifiedAccount, or portfolioMargin. Sign with the owner's wallet and submit to the returned submitPath. Errors: 400 invalid input; execution may return 422 rejection or 502 provider failure. Treat spot and perp as one balance only when the account ","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":15,"reported_payers_30d":3,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"abstraction":"unifiedAccount","nonce":1710000000000,"user":"0x1111111111111111111111111111111111111111"},"bodyType":"json","method":"POST","type":"http"},"output_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","additionalProperties":false,"properties":{"abstraction":{"description":"New mode: \"disabled\", \"unifiedAccount\" (spot and perp as one balance) or \"portfolioMargin\".","enum":["disabled","unifiedAccount","portfolioMargin"],"type":"string"},"nonce":{"description":"Action nonce in milliseconds since the epoch; defaults to the current time.","minimum":0,"type":"integer"},"user":{"description":"Account whose mode changes; the account owner's wallet signs.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"}},"required":["user","abstraction"],"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"},"history":[],"description_full":"Prepare a user-signed abstraction change: disabled, unifiedAccount, or portfolioMargin. Sign with the owner's wallet and submit to the returned submitPath. Errors: 400 invalid input; execution may return 422 rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is \"unifiedAccount\".","last_updated":"2026-11-23T08:04:48.078Z","schemes":["exact"]}