multisigSignatureMiddleware
A signer middleware to be used with Multisig Account Clients. This middleware handles correctly aggregating signatures passed through as context when sending UserOperations, proposing UserOperations, or adding signatures to a UserOperation.
Import
import { multisigSignatureMiddleware } from "@account-kit/smart-contracts";
Parameters
struct
Deferrable<UserOperationStruct<TEntryPointVersion>>
the user operation struct to be signed
args
ClientMiddlewareArgs<TAccount, C, TContext, TEntryPointVersion>
the parameters to be passed to the middleware
args.account
UserOperationOverrides<TEntryPointVersion>
the account to be used for signing
args.client
MiddlewareClient
the smart account client that will be used for RPC requests
args.context
MultisigUserOperationContext
the context object containing the signatures to be aggregated MultisigUserOperationContext
Returns
Promise<Deferrable<UserOperationStruct<TEntryPointVersion>>>
a Promise containing a UserOperation with an aggregated signature in the signature
field