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;consttransferInstruction=SystemProgram.transfer(// The transfer is being signed from the Squads Vault, that is why we use the VaultPda vaultPda,to.publicKey,1*LAMPORTS_PER_SOL);// Here we are adding all the instructions that we want to be executed in our transactionconsttestTransferMessage=newTransactionMessage({ payerKey: vaultPda, recentBlockhash: (awaitconnection.getLatestBlockhash()).blockhash, instructions: [transferInstruction],});awaitmultisig.rpc.vaultTransactionCreate({ connection, feePayer, multisigPda, transactionIndex, creator:feePayer.publicKey, vaultIndex:0, ephemeralSigners:0, transactionMessage: testTransferMessage,});