Remove Member

Remove a member via Config Authority

This instruction removes a member at the discretion of the Config Authority.

Example

import * as multisig from "@sqds/multisig";

// Cluster Connection
const connection = new Connection( < your rpc url > );

// Fee payer is the a signer that pays the transaction fees
const feePayer = Keypair.generate();

// Derive the multisig PDA
const multisigPda = multisig.getMultisigPda({
    // The createKey has to be a Public Key, see accounts reference for more info
    createKey,
})[0];

// Public Key of the old member
const oldMember = new PublicKey("");

await multisig.rpc.multisigRemoveMember({
    connection,
    feePayer,
    // The public key of the multisig account
    multisigPda,
    // Specify the config authority Public Key if there is one, else set to null
    configAuthority: null,
    // Account paying for the rent of the additional account space needed by adding a member
    rentPayer: feePayer,
    oldMember,
    memo,
    // ProgramId of the Squads Program
    programId
    
});

Notes

Last updated