curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/info \
--header 'Content-Type: application/json' \
--data '
{
"type": "borrowLendUserState",
"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
}
'{}curl --request POST \
--url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/info \
--header 'Content-Type: application/json' \
--data '
{
"type": "borrowLendUserState",
"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"
}
'{}info endpoint with type: "borrowLendUserState" retrieves a user’s borrow/lend positions and health status on Hyperliquid. Returns the user’s active token positions, overall health status, and health factor.
type (string, required) — The request type. Must be "borrowLendUserState".user (string, required) — Onchain address in 42-character hexadecimal format.tokenToState (array) — Array of the user’s borrow/lend positions per token.health (string) — Overall health status of the user’s borrow/lend positions (e.g., "healthy").healthFactor (string or null) — Numeric health factor, or null if the user has no active borrow/lend positions.curl -X POST \
-H "Content-Type: application/json" \
-d '{"type": "borrowLendUserState", "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"}' \
https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/info
{
"tokenToState": [],
"health": "healthy",
"healthFactor": null
}
info endpoint with type: "borrowLendUserState" is useful for:
User's borrow/lend state including positions and health
The response is of type object.
Was this page helpful?