sendCalls
Requests the wallet to sign and broadcast a batch of calls (transactions) to the network in a single operation.
import { encodeFunctionData } from "viem";
import countContractAbi from "@/contract/counterABI.json";
const COUNTER_CONTRACT_ADDRESS = "0x4FbF9EE4B2AF774D4617eAb027ac2901a41a7b5F";
const txHash = await smartAccountClient.sendCalls(
{
calls: [
{
to: COUNTER_CONTRACT_ADDRESS,
value: 0,
data: calldata,
},
{
to: COUNTER_CONTRACT_ADDRESS,
value: 0,
data: calldata,
},
],
}
)
Returns
string
The request returns the UserOperation hash, which can be used to track the transaction status via getCallsStatus within the session.
Last updated