buildUserOperationFromTxs
Performs buildUserOperationFromTx
in batch and builds into a single,
yet to be signed UserOperation
(UO) struct. The output user operation struct
will be filled with all gas fields (and paymaster data if a paymaster is used)
based on the transactions data (to
, data
, value
, maxFeePerGas
,
maxPriorityFeePerGas
) computed using the configured ClientMiddlewares on the SmartAccountClient.
Import
Usage
Parameters
client_
Client<TTransport, TChain, TAccount>
the smart account client to use to make RPC calls
args
BuildTransactionParameters
an object containing the requests to build as well as, the account if not hoisted, the context, the overrides, and optionally a flag to enable signing of the UO via the underlying middleware
Returns
Promise<BuildUserOperationFromTransactionsResult<TEntryPointVersion>>
a Promise containing the built user operation