Content
@
https://warpcast.com/~/channel/fc-devs
0 reply
0 recast
0 reaction
sebayaki.eth
@if
It seems TierRegistry doesn’t have any state variables or functions to retrieve the current state of a user’s tier from the contract, so I may have to index all PurchasedTier events from the beginning to determine if an FID has a pro subscription or not. (even if I do that, the data may not include older subscriptions from before the contract has deployed, right?) Is there a better way to query whether a user with an FID has subscribed to Farcaster pro or not? I need this information to display check marks next to usernames on our mini-app. I know Neynar has this data in their user API now, but I want more direct access instead of cached data. cc: @horsefacts.eth @dynemyte
2 replies
1 recast
4 reactions
horsefacts
@horsefacts.eth
yeah, you can use the Snapchain storage limits GRPC/HTTP API. (we do need to add this to the docs, cc @dynemyte) Here's mine: https://snap.farcaster.xyz:3381/v1/storageLimitsByFid?fid=3621
2 replies
0 recast
1 reaction
mvr 🐹
@mvr
all old pros are in the initial batch events in the contract Still need to fix this as well, was hoping for snapchain events but I think yours is the only way rn, ... Or iterate through all fids Just getting a list of all active subs ain't easy 10600 👏
1 reply
0 recast
0 reaction