hl_batchClearinghouseStates JSON-RPC Method
This method efficiently retrieves clearinghouse states for up to 1000 users in a single request. The response includes both successful states and any failed wallet addresses. Use the optional
dex parameter with value "ALL_DEXES" to retrieve data across all DEXes (native, xyz, flx, vntl, hyna, km, abcd, cash, para).Parameters
users
array
REQUIRED
Loading...
dex
string
Loading...
Returns
result
object
Loading...
successful_states
array
Loading...
address
string
Loading...
data
object
Loading...
marginSummary
object
Loading...
accountValue
string
Loading...
totalMarginUsed
string
Loading...
totalNtlPos
string
Loading...
totalRawUsd
string
Loading...
withdrawable
string
Loading...
crossMarginSummary
object
Loading...
assetPositions
array
Loading...
position
object
Loading...
coin
string
Loading...
entryPx
string
Loading...
leverage
object
Loading...
liquidationPx
string
Loading...
marginUsed
string
Loading...
unrealizedPnl
string
Loading...
time
integer
Loading...
failed_wallets
array
Loading...
address
string
Loading...
Request
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"method": "hl_batchClearinghouseStates",7"params": {8"users": [9"0x0000000000004f3d8aaf9175fd824cb00ad4bf80",10"0x00000000002f3d928030df28cb15b27b56888b9b",11"0x0000000000bdc2fd416def2d8688069052eb0f87",12"0x0000000afcd4de376f2bf0094cdd01712f125995",13"0x0000001d3e9a2e0c9e998ca01a5d54130baca8f3"14],15"dex": "ALL_DEXES"16},17"id": 118}'19
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"method": "hl_batchClearinghouseStates",7"params": {8"users": [9"0x0000000000004f3d8aaf9175fd824cb00ad4bf80",10"0x00000000002f3d928030df28cb15b27b56888b9b",11"0x0000000000bdc2fd416def2d8688069052eb0f87",12"0x0000000afcd4de376f2bf0094cdd01712f125995",13"0x0000001d3e9a2e0c9e998ca01a5d54130baca8f3"14],15"dex": "ALL_DEXES"16},17"id": 118}'19
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free