Yoki subscriptions
Frame for crypto-native subscriptions to creators/influencers in Farcaster feed
Screenshots






Problem Statement
Creator economy is developing enormously. I am working at yoki.finance and we developing a crypto-native subscription payments gateway allowing users subscribe for different merchants and services non-custodially. I implemented a Farcaster frame that will allow any creator on Farcaster to be able to publish this frame so that other users can support her/him by "subscribing", i.e. paying some amount of USDC every month. Potentially, such supporters can have additional perks for doing so. So it is like Patreon, but on Farcaster and crypto native!
Solution
This project uses Pinata tutorial boilerplate https://github.com/PinataCloud/hat-store-frame Tech is: Pinata, Frog, viem, next.js.In order to "subscribe", so that the platform will deduct 0.001 USDC on Base every month, user does this:Tops up his/her wallet with at least 0.001 USDC on Base.Opens https://hack-yoki-subscription-frame.vercel.app/api in Warpcast frame validator (https://warpcast.com/~/developers/frames?url=https%3A%2F%2Fhack-yoki-subscription-frame.vercel.app%2Fapi).The frame asks for wallet address (just copy and paste yours)Then frame asks for approval for at least 0.001 USDC for https://basescan.org/address/0x553575cb32Db57A0b3637f6bb8197333a9365145 smart contract (spender). In the demo approval is already given.Frame checks USDC balance. If not enough, it asks to top up the wallet (see demo video).When approval and balance are fine, frame asks to subscribe (subscribe function call on 0x553575cb32Db57A0b3637f6bb8197333a9365145 contract).After user is subscribed, he/she can unsubscribe.Yoki infrastructure deducts 0.001 USDC every month (implemented, but out of scope of this hackathon).
Hackathon
Frameworks
2024
Contributors
- stevedylandev
31 contributions
- TechGeorgii
24 contributions