Function getAddOwnerTx

  • Generates the transaction data for adding a new owner to a smart account.

    This function prepares the necessary transaction data to add a new owner to 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: GetAddOwnerTxParameters<TModularSmartAccount>

      The parameters for adding the new 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 add owner action or if the public client is not found.