For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Rent Collector

Edit rent collector address via Config Authority

This instruction edits the rent collector 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];

const transactionIndex = 1n;

const newRentCollector = Keypair.generate().publicKey;

const signature = await multisig.rpc.multisigSetRentCollector({
      connection,
      multisigPda,
      feePayer,
      configAuthority: configAuthority.publicKey,
      newRentCollector,
      rentPayer: feePayer,
      programId,
      signers: [feePayer],
});

Notes

Last updated