Squads Protocol Side Track for Hyperdrive
Submit your project
  • Introduction
    • Hyperdrive Hackathon
    • What is Squads Protocol
    • Quickstart
  • Development
    • Overview
    • Instructions - Interact with the program
      • Create Multisig
      • Add Member
      • Add spending limit
      • Remove Spending Limit
      • Create Vault Transaction
      • Create Config Transaction
      • Create Proposal
      • Approve Transaction
      • Reject Proposal
      • Cancel Proposal
      • Execute Transaction
    • PDAs - Read data from the Program
      • Multisig Account Info
      • Transaction Account Info
      • Proposal Account Info
  • Reference
    • Accounts
    • Spending Limits
    • Time-locks
    • Permissions
    • SDKs
    • Transaction Builder
  • Squads CLI
    • Installation
    • Commands
  • Submissions
    • Submit your project
    • Get support
Powered by GitBook
On this page
  1. Reference

Time-locks

PreviousSpending LimitsNextPermissions

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 guide for more insight on the accounts involved in that instruction.

Create a Config Transaction