useSendUserOperation
A hook that returns functions for sending user operations.
You can also optionally wait for a user operation to be mined and get the transaction hash before returning using waitForTx
.
Like any method that takes a smart account client, throws an error if client undefined or is signer not authenticated.
Import
Usage
Parameters
params
UseSendUserOperationArgs<TEntryPointVersion, TAccount>
the parameters for the hook including the client, a flag to wait for tx mining, and mutation args. ref
Returns
UseSendUserOperationResult<TEntryPointVersion, TAccount>
functions and state for sending UOs. ref