Function getRemoveOwnerTx

  • Generates the transaction data for removing an owner from a smart account.

    This function prepares the necessary transaction data to remove an owner from the specified smart account. It doesn't send the transaction, but returns the data needed to do so.

    Type Parameters

    • TModularSmartAccount extends undefined | ModularSmartAccount

      The type of the smart account, which can be a ModularSmartAccount or undefined.

    Parameters

    • client: Client<Transport, undefined | Chain, TModularSmartAccount>

      The client used to interact with the blockchain.

    • parameters: GetRemoveOwnerTxParameters<TModularSmartAccount>

      The parameters for removing the owner.

    Returns Promise<Call>

    A promise that resolves to a Call object containing the transaction data.

    If no account is provided and the client doesn't have an associated account.

    If there's an error getting the remove owner action or if the public client is not found.