Send User Operations
Once your users have been authenticated, you can start sending user operations! Account Kit makes it really easy to send user operations using React hooks.
Sending user operations is really easy, since all you have to do is use the useSendUserOperation
hook.
If you want to sponsor the gas for a user, see our guide.
Single user operation
In the below example, we use ModularAccountV2
as the underlying Smart
Contract type, which is our default and recommended account. To learn more
about all the account options, check out our guide on choosing a smart
account.
Batch user operation
It’s also possible to send user operations in batch using the same hook.