buildUserOperation
Builds a user operation using the provided client and operation parameters. Ensures that the account exists and the client is compatible.
Import
Usage
Parameters
client_
Client<TTransport, TChain, TAccount>
the client instance used to build the user operation
args
BuildUserOperationParameters<TAccount, TContext, TEntryPointVersion>
the parameters required to build the user operation, including account, overrides, and context
Returns
Promise<UserOperationStruct<TEntryPointVersion>>
a promise that resolves to a UserOperationStruct
object containing the built user operation details