Content
@
0 reply
0 recast
0 reaction
Liang @ degencast.wtf 🎩
@degencast.eth
Is it possible to do batched transactions (AA transaction) with frame transactions? eg. currently in https://frame.degencast.wtf/proposal/frames?castHash=0x24c0c3a5d5ce27b00f80144c72be534f8f25cab3 you need to: - approve - action by clicking frame button twice. But we are able to do it with one AA transaction using https://wagmi.sh/react/api/hooks/useWriteContracts
3 replies
0 recast
3 reactions
Haole
@haole
have you tested with useSendTransaction? https://wagmi.sh/react/api/hooks/useSendTransaction#usesendtransaction
1 reply
0 recast
0 reaction
Liang @ degencast.wtf 🎩
@degencast.eth
This is not for batching for aa tho?
1 reply
0 recast
0 reaction
Haole
@haole
I am not familiar with AA, I am currently using useSendTransaction to handle the data returned from frames.
1 reply
0 recast
0 reaction
Liang @ degencast.wtf 🎩
@degencast.eth
The core difference is we convert multiple transactions into multiple userOps and send them all with one single transaction https://docs.pimlico.io/conceptual/compression#how-does-account-abstraction-work @kristof any idea how https://wagmi.sh/react/api/hooks/useWriteContracts abstract useroperations?
1 reply
0 recast
0 reaction
Kristof Gazso | kristof.eth
@kristof
this actually makes a wallet_sendCalls method, which requires the wallet to be compatible for EIP-5792. the wallet would then be responsible for taking that and crafting a userop based on it and submitting it some wallets like coinbase wallet, ambire, safe ui are already compatible!
0 reply
0 recast
1 reaction