userClaimRewards
Returns the referral reward claims user has made, one row per claim. Use it to render a claim history on the referral page.
POST/infotype
userClaimRewardsRender the referral reward claim history.
Request body
typestringrequired
Must be `userClaimRewards`.
"userClaimRewards"userstring · addressrequired
Account that claimed.
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": "userClaimRewards",
"user": "0x95761f4d19B906B3B09da3EeE0BF30B337f4dB88"
}'Try it
Response 200
codeinteger
`0` on success.
dataobject[]
One row per claim. Empty when the user has never claimed.
claimAmountstring
Amount claimed, in USDC.
claimTimeinteger
Claim time, Unix milliseconds.
txHashstring
TxFlow transaction of the claim.
successboolean
`false` on error, with `code` set and the text in `message` instead of `data`.
Response example
{
"success": true,
"code": 0,
"data": [
{
"claimAmount": "12.5",
"claimTime": 1792402405897,
"txHash": "0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1"
}
]
}data is an array; it is empty for a user who has never claimed. claimAmount is a decimal USDC string and claimTime is Unix milliseconds.
Next steps
Read the current unclaimed and claimed totals from referral.