kingbook pfp
kingbook
@kingbook.eth
I have a question about @frames! cc @df @stephancill I'm using framesjs and Next.js. At this point, I'll try anything. How do you route your API calls? I'm trying to do something that's not necessarily Farcaster/Warpcast/Moxie statistics, but I only see those types of frames for the most part. I want to build a very tiny version of https://nexid-base.pages.dev to be executed in a frame. Search for a Basename, get a report with some metrics coming from Alchemy SDK, profit. So far, I've gotten as far as having a frame with a search input, but all my POSTS are failing after that. I prefer your frame debugger over anything else I've seen so far.
1 reply
0 recast
1 reaction

David Furlong pfp
David Furlong
@df
are you using the frames.js starter template? we have around 20 example frames you can get started from. if you use the frames.js CLI it will prompt you to
0 reply
0 recast
0 reaction

kingbook pfp
kingbook
@kingbook.eth
@df The templates are amazing. My approach, however, may not be. I'm trying to do a Basename reverse lookup. Seems simple enough. I have only ever used ethers.js for this, but it doesn't seem to work in a frame, it complains about network connectivity. I've tried using Alchemy SDK, Onchainkit, Wagmi, Infura endpoint with and without ethers.js, a public RPC endpoint and I can't get it. I'm just complaining really, but if you have any thoughts on this, I'd love to hear them. I get as far as a successful POST, but can't display the address properly in a rendered image if I don't get the address back in the right format.
1 reply
0 recast
0 reaction

kingbook pfp
kingbook
@kingbook.eth
I wasn't, but I'm going to start working on it again, I'll check it out, this is fun as hell, thank you!
0 reply
0 recast
1 reaction