ilemi
@ilemi
just found that "const { data: walletClient } = useWalletClient()" doesn't work in the farcaster miniapp (returns null even when the wallet is connected), is there some alternative way of accessing the wallet client? need it for signTypedData() in a miniapp you can see the code here: https://v0.dev/chat/farcaster-miniapp-SqtIJ6eQFzO cc @horsefacts.eth @samuellhuber.eth ?
1 reply
0 recast
2 reactions
Samuel ツ
@samuellhuber.eth
intended way is "miniapp-wagmi-connector" https://www.npmjs.com/package/@farcaster/miniapp-wagmi-connector though any injected provider should work and there's an EthereumProvider in https://miniapps.farcaster.xyz/docs/sdk/wallet
1 reply
0 recast
0 reaction