Content
@
0 reply
0 recast
0 reaction
jon
@sweetleaf.eth
Building a frame in Frog, I would like to take user input in a frame, use that in an API call, and pass that response to another page in the frame. What's the proper way to accomplish this? I see things in docs for onchain actions like `app.transaction` but nothing for arbitrary API calls.
2 replies
1 recast
3 reactions
jon
@sweetleaf.eth
@horsefacts.eth @stephancill @fiveoutofnine.eth know of any docs or opensource frames that might be helpful here? Have a good idea of how to go about it, but stuck on implementation.
2 replies
0 recast
1 reaction
Stephan
@stephancill
If you mean you want to take user input do req, return a frame, and have the api response data available when the user next presses a button, then depending on data length you could store it in 1. the button target url params (<200b) 2. frame state (up to 4kb) 3. kv store like vercel/kv or cloudflare kv (arbitrary)
2 replies
0 recast
1 reaction
5/9
@fiveoutofnine.eth
don’t know, but thanks for including me in the bunch :P
0 reply
0 recast
1 reaction