Data & Analytics
The wstGBP subgraph indexes the token and its modules on Ethereum mainnet via The Graph , exposing supply, holders, price history, gate config, and the full redemption lifecycle over GraphQL. Use it for anything historical or aggregated; use direct reads for live state.
Endpoints
Confirm the production query URL before relying on it — the live gateway URL is issued at deploy time and is not committed in the source repo. Querying the decentralized gateway requires your own Graph API key.
- Studio slug:
wstgbp(Subgraph Studio ) - Known deployment id:
BEJdaXsoMoJwXJgcaUYKfXqksmov6NRzhdJT8PxHphoG
# Decentralized gateway (production) — requires your Graph API key
https://gateway.thegraph.com/api/<API_KEY>/subgraphs/id/BEJdaXsoMoJwXJgcaUYKfXqksmov6NRzhdJT8PxHphoG
# Subgraph Studio (development / testing)
https://api.studio.thegraph.com/query/<STUDIO_ID>/wstgbp/<VERSION>Indexed data sources
All start at block 24852284 (the deployment cluster):
| Source | Address | Indexed |
|---|---|---|
wstGBP (token) | 0x57C3571f10767E49C9d7b60feb6c67804783B7aE | Transfer, Approval, ContractCreated, ContractRedemption, ClaimProcessed, Settled, Issued, Smelted |
Price (pip) | 0x6A79dCe61A12aa4b75449e0B03746260765D07dF | Poke, Kiss, Diss, File, proxy/admin events |
Gate (act) | 0xB59cB4d3075a8ce5013C78e8Bd7aDA3Fd1300f7f | Open/Halt mint & burn, Bpsin, Bpsout, Cooldown, Capacity |
Treasury (adm) | 0xa8F5bE8457D6ed5c659647fa8d107C3F2086626A | Bestow, Depose (issuer registry) |
Guard (cop) | 0x794cF5948444b14105587455EbE96Caace036d52 | proxy/admin events |
Key entities
Protocol(singleton, id"wstGBP") —totalSupply,holderCount,totalMinted,totalRedemptionClaims,totalIssued,totalSmelted,totalSettled, plus links tocurrentPriceandgateConfig.Account— per‑holder balance and lifetime totals;isIssuer.Redemption(+RedemptionStatus:PENDING/PARTIALLY_CLAIMED/FULLY_CLAIMED) andClaimEvent— the redemption lifecycle per on‑chain id.PriceUpdatehistory +CurrentPricesingleton (with the feed’s decimals).GateConfigsingleton (latestbpsin/bpsout/cooldown/capacity) +GateConfigChangehistory.- Event logs:
TransferEvent,ApprovalEvent,MintEvent,IssueEvent,SmeltEvent,SettleEvent; admin/proxy:Ward,ImplementationChange,ProxyState.
Denomination gotcha: redemption and claim amounts are denominated in the underlying
gem (tGBP), not in wstGBP burned. The wstGBP burned is captured by the Transfer to
0x0.
Example queries
{
protocol(id: "wstGBP") {
totalSupply
holderCount
totalRedemptionClaims
currentPrice { price priceDecimals isPaused }
gateConfig { bpsin bpsout cooldown capacity }
}
redemptions(where: { status: PARTIALLY_CLAIMED }) {
id
claimAmount # underlying-gem (tGBP) owed, NOT wstGBP burned
remaining
claims { amount timestamp }
}
transferEvents(first: 5, orderBy: timestamp, orderDirection: desc) {
from
to
amount
isMint
isBurn
}
}Price history (for charting accrual)
{
priceUpdates(first: 100, orderBy: timestamp, orderDirection: asc) {
price
timestamp
isPause
}
}The rising price series is the NAV curve described in Architecture —
annualize it to compute a trailing APR.