builderState
Accrual, payout history, and eligibility for one builder — the address that collects a builder code fee on the orders it submits. user is the builder's own address, not the trader's.
builderStateRead a builder’s on-chain claimable balance and fee eligibility before claimBuilderRewards.
Builder address to read state for.
curl -X POST https://rpc.txflow-testnet.xyz/info \
-H "Content-Type: application/json" \
-H "x-api-version: 2026-08-16" \
-d '{
"type": "builderState",
"user": "0x4916d34209A2E010912dE8b412A90ECcEc77D8aC"
}'`0` on success.
Builder fees accrued to this address over its lifetime, in USDC.
Number of users currently approving this builder.
Currently unclaimed balance, in USDC. This is what `claimBuilderRewards` pays out.
Total already claimed, in USDC.
Whether the address currently qualifies to accrue builder fees.
Whether the address is a standard account. LP and vault addresses are never eligible.
The address's available perp-account balance, in USDC. Builder fees accrue only while this is at least 100.
`false` on error, with `code` set and the text in `message` instead of `data`.
{
"success": true,
"code": 0,
"data": {
"accruedRewards": "0.000000",
"claimableRewards": "0.000000",
"claimedRewards": "0.000000",
"eligible": true,
"perpsAccountValue": "200.012971",
"isStandardAccount": true,
"activeUserCount": 0
}
}Balances
The three USDC figures are the same balances claimBuilderRewards acts on:
| Field | Meaning |
|---|---|
accruedRewards | Lifetime total accrued to this builder. A claim does not change it. |
claimableRewards | Currently unclaimed. This is what a claim pays out; claiming with 0 here fails with No unclaimed builder rewards. |
claimedRewards | Total already claimed. A claim moves claimableRewards into this. |
Eligibility
Builder fees accrue only while the address qualifies. eligible is the answer; the two fields beside it are the inputs:
| Field | Meaning |
|---|---|
eligible | Whether the address currently qualifies to accrue builder fees. |
perpsAccountValue | The builder's available perp-account balance in USDC — fees accrue only while this is at least 100. |
isStandardAccount | Whether the address is a standard account. LP and vault addresses are never eligible. |
activeUserCount is the number of users currently approving this builder.