userRole
post
/info
Request user role.
Body
Request user role.
typeundefined · enumRequiredPossible values:
Type of request.
userstring · min: 42 · max: 42RequiredPattern:
User address.
^0[xX][0-9a-fA-F]+$Responses
200
User role.
application/json
Responseany of
User role.
or
or
422
Failed to deserialize the JSON body into the target type
text/plain
500
Internal Server Error
application/json
post
/infoPOST /info HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"type": "userRole",
"user": "text"
}{
"role": "missing"
}Last updated