Goals


  1. Allow frames to trigger onchain transactions from Farcaster apps.
  2. Minimize risk to users from malicious frames

Proposal


At a high level:

  1. A frame may have a button of action type tx with a target property that has a URL.
  2. The app makes a frame post request to the URL to fetch the tx data.
  3. The app forwards the tx data to the user’s wallet.
  4. The wallet returns the user to the app with the tx id, if successful.
  5. The app makes a frame post request with the tx id, if successful.

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.