get_user_state
Retrieve the perpetual account state for any Hyperliquid wallet, including account value, margin, withdrawable balance, and open positions with PnL and liquidation details.
Instructions
Perp account state for any Hyperliquid wallet address (0x...): account value, total notional, margin used, withdrawable balance, and every open position with side, size, entry, unrealized PnL, liquidation price, and leverage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "get_user_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Wallet address, 0x... |