Goals
- Allow frames to trigger onchain transactions from Farcaster apps.
- Minimize risk to users from malicious frames
Proposal
At a high level:
- A frame may have a button of action type
tx
with a target
property that has a URL.
- The app makes a frame post request to the URL to fetch the tx data.
- The app forwards the tx data to the user’s wallet.
- The wallet returns the user to the app with the tx id, if successful.
- The app makes a frame post request with the tx id, if successful.
Example
A user may rent storage units on Farcaster by interacting with the Storage Registry contract. Alice wants to build a frame to make it easy to do from the feed.