Time-locks

A time-lock is a feature in which a transaction will be frozen for a certain period of time after reaching the ready to execute threshold.

Here is how to modify a time lock with the Squads Multisig SDK.

await multisig.rpc.configTransactionCreate({
    connection,
    feePayer: members.proposer,
    multisigPda: autonomousMultisigPda,
    transactionIndex,
    creator: members.proposer.publicKey,
    // Set a new 1 minute time-lock
    actions: [{
        __kind: "SetTimelock",
        newTimeLock: 60 * 60
    }],
});

See the Create a Config Transaction guide for more insight on the accounts involved in that instruction.

Last updated