useSendPreparedCalls
Hook for sending prepared calls to a smart account.
This hook provides functionality to send previously prepared calls to a smart account. It handles the signing and sending of prepared calls, but does not support EOA wallets.
Import
Usage
Parameters
params
UseSendPreparedCallsParams
- Configuration parameters for the hook
params.client
GetSmartWalletClientResult<Address>
- Smart wallet client instance
Returns
UseSendPreparedCallsResult
An object containing:
sendPreparedCalls
: Function to send prepared calls synchronously (returns void)sendPreparedCallsAsync
: Async function to send prepared calls (returns Promise)sendPreparedCallsResult
: The result of the last successful prepared call executionisSendingPreparedCalls
: Boolean indicating if prepared calls are currently being senterror
: Error from the last failed prepared call execution, if any