vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
@horsefacts.eth, I'm trying to test a USDC approval tx on Base Sepolia, and I get: [Error] provider request error – Provider.UnsupportedMethodError: Farcaster Wallet does not support the requested method: eth_estimateGas Any ideas? What Am I doing wrong? (Using ethers)
1 reply
0 recast
3 reactions

horsefacts pfp
horsefacts
@horsefacts.eth
we don't expose access to read methods from the provider, you need to use your own RPC to call these. Viem makes a distinction between "public" and "wallet" clients, but Ethers doesn't. we only support the "wallet" methods (unfortunately otherwise there is too much abuse of our "free" RPCs). if you're using Ethers, you probably need another Provider, or perhaps to configure your existing Provider to fall back to a public RPC.
1 reply
0 recast
5 reactions

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Thank you. I'm once again lost in the living hell called miniapps+wagmi+viem+all_the_shit_that_comes_with_them_and_their_versions :-( I remember there used to be some sample miniapps, but I can't find any links. Are they still somewhere? Are they up to date?
1 reply
0 recast
0 reaction

horsefacts pfp
horsefacts
@horsefacts.eth
The "vanilla" example here is up to date: https://github.com/farcasterxyz/miniapps/blob/main/examples/vanilla/frame/index.ts @jc4p is the main person I know who does not use the viem/wagmi stack for mini apps. you might look at his repos for more examples.
1 reply
0 recast
1 reaction