buildUserOperationFromTx
Defined in: aa-sdk/core/src/actions/smartAccount/buildUserOperationFromTx.ts:62
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
Example
Type Parameters
Parameters
Returns
Promise<UserOperationStruct<TEntryPointVersion>>
a Promise containing the built user operation