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.
![Screenshot 2024-02-28 at 8.16.28 AM.png](https://prod-files-secure.s3.us-west-2.amazonaws.com/1ae150b5-547b-47f9-9f29-638305dbba7a/d62a7b91-4f6c-4165-9b66-f43be1a81fdc/Screenshot_2024-02-28_at_8.16.28_AM.png)
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.