Read the user’s pending YCR straight from the chain (YCRRewards.pendingOf(addr)) plus a per-action-type breakdown derived from the indexer’s engagement history.

Request

Response — 200 OK

Fields

string
Pending YCR in wei (1e18-scaled). Authoritative — read live from YCRRewards.pendingOf(addr).
string
Same value, formatted with 4 decimals for display.
string
Derived preview: pendingYcr / currentXWad. Informational only — the user must actually swap to convert.
array
Per-action-type counts from the indexer’s local DB. The baseMintYcr figure is informational (mirror of WP §7.1 base rates × count). Authoritative pending is the on-chain pendingYcr above.

Claiming the pending YCR

Two paths:
  1. User-signed (mainnet-compliant) — wallet calls YCRRewards.claim(uint8 activeActionTypes). User pays gas. See YCRRewards contract.
  2. Gasless relay (testnet fallback)POST /api/mobile/claim. Indexer calls claimFor via the oracle wallet. See /api/mobile/claim.