Config Transactions are a little more complicated than the other ones, as there are multiple configuration arguments that you can supply to such a transaction. Let's take a look at how this would look like.
Let's set the requirements up
import*as multisig from"@sqds/multisig";// Cluster Connectionconstconnection=newConnection( < yourrpcurl > );// Fee payer is the a signer that pays the transaction feesconstfeePayer=Keypair.generate();// Derive the multisig PDAconstmultisigPda=multisig.getMultisigPda({// The createKey has to be a Public Key, see accounts reference for more info createKey,})[0];// Derive the PDA of the Squads Vaultconst [vaultPda] =multisig.getVaultPda({ multisigPda, index:0,});consttransactionIndex=1n;