buildUserOperationFromTx
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<Transport, TChain, TAccount>
the smart account client to use for RPC requests
args
SendTransactionParameters
the send tx parameters
overrides
UserOperationOverrides
optional overrides to use for any of the fields
context
TContext
if the smart account client requires additinoal context for building UOs
Returns
Promise<UserOperationStruct<TEntryPointVersion>>
a Promise containing the built user operation