Inframe transaction confirmations
Contact
Feel free to DC paulcowgill and/or jomessin on Farcaster for help.
Intro / Problem
- Many Farcaster Frames 🔲 allow users to click a button that results in an onchain transaction ⛓️.
- When using those frames, you might wonder, “Did the onchain tx happen yet?” 🤔
- This document outlines how to add a feature to your frame to include a confirmation of the onchain transaction within the frame itself. 🧾
![tx.png](https://prod-files-secure.s3.us-west-2.amazonaws.com/14ab7764-af30-4e4d-bd61-6a003d02c0cf/1dc6406f-4b42-4b45-b621-a9ac2e461e11/tx.png)
Opportunity
- You don’t need to build the tech for showing transaction confirmations from scratch. 🏎️
- Frames are composable. 🔌
- Once Upon already has a frame for viewing an onchain transaction. 🔍
- Remixing your frame with the parts you need from Once Upon’s transaction frame just takes a few minutes. 🔀
- Your users will appreciate your frame more if they know they can trust what happened 🔰
Solution
There are 3 ways to integrate Once Upon’s transaction frame in your frame.
-
✨ recommended ✨ show your own success view, then show the Once Upon tx confirmation
![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/14ab7764-af30-4e4d-bd61-6a003d02c0cf/81975c55-a291-4a7d-b03b-ab3b42a34f7a/Untitled.png)
-
one-click show Once Upon tx conf., difference with 1 is they hit their own api in the middle since it's all "one-click"
![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/14ab7764-af30-4e4d-bd61-6a003d02c0cf/5a43de3b-e453-4c52-9872-402fd8dbaec2/Untitled.png)
-
retain full control of buttons on the Once Upon tx conf. view
![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/14ab7764-af30-4e4d-bd61-6a003d02c0cf/8bdb2cc4-f322-4bfd-8de2-e2c6975c7a99/Untitled.png)
Supported chains