Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

userRole

Returns the referral role of user. Clients read domains.referral.role to choose which referral view to render.

POST/infotype userRole

Pick 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
POST https://rpc.txflow-testnet.xyz/info
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
      }
    }
  }
}
roleMeaning
0Regular user
1Referrer
2Affiliate

Next steps

Read referral volume and reward balances from referral, and past claims from userClaimRewards.