function sendPreparedCalls(client, params): Promise<{}>;Defined in: account-kit/wallet-client/src/client/actions/sendPreparedCalls.ts:53
Sends prepared calls by submitting a signed user operation. This method is used after signing the signature request returned from prepareCalls.
// First prepare the calls
const preparedCalls = await client.prepareCalls({
calls: [
{
to: "0x1234...",
data: "0xabcdef...",
value: "0x0",
},
],
capabilities: {
paymasterService: { policyId: "your-policy-id" },
},
});
// Then sign the calls
const signedCalls = await client.signPreparedCalls(preparedCalls);
// Then send the prepared calls with the signature
const result = await client.sendPreparedCalls({
signedCalls,
});| Parameter | Type | Description |
|---|---|---|
|
| The wallet API client to use for the request |
| Parameters for sending prepared calls |
Promise<{
}>
A Promise that resolves to the result containing the call ID