userRole
Returns the referral role of user. Clients read domains.referral.role to choose which referral view to render.
POST/infotype
userRolePick the referral view to render: regular user, referrer, or affiliate.
Request body
typestringrequired
Must be `userRole`.
"userRole"userstring · addressrequired
Account to look up.
Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
-H "Content-Type: application/json" \
-H "x-api-version: 2026-08-16" \
-d '{
"type": "userRole",
"user": "0x08829c9bee1df67748ec568da9c98a952fdeda5e"
}'Try it
Response 200
codeinteger
`0` on success.
dataobject
domainsobject
Roles grouped by product domain.
successboolean
`false` on error, with `code` set and the text in `message` instead of `data`.
Response example
{
"success": true,
"code": 0,
"data": {
"domains": {
"referral": {
"role": 1
}
}
}
}role | Meaning |
|---|---|
0 | Regular user |
1 | Referrer |
2 | Affiliate |
Next steps
Read referral volume and reward balances from referral, and past claims from userClaimRewards.