Squads Docs
Development
Development
  • Introduction
    • What is Squads Protocol
    • Use Cases
    • Quickstart
  • Typescript
    • Overview
    • Instructions
      • Create Multisig
      • Create Config Transaction
      • Create Vault Transaction
      • Create Proposal
      • Approve Proposal
      • Reject Proposal
      • Cancel Proposal
      • Execute Config Transaction
      • Execute Vault Transaction
      • Create Batch
      • Add To Batch
      • Close Vault Transaction Account
      • Controlled Multisig Instructions
        • Add Member
        • Remove Member
        • Set Rent Collector
        • Add spending limit
        • Remove Spending Limit
    • Accounts
      • Multisig
      • Vault
      • Transactions
      • Proposal
      • Batch
  • Reference
    • Accounts
    • Permissions
    • Spending Limits
    • Time-locks
    • SDKs
    • Controlled Multisigs
  • API
    • Vault Check
  • CLI
    • Installation
    • Commands
  • Get Support
    • We're here to help
  • Other
    • Migrating from MultisigCreate v1 to v2
    • Squads Actions and Blinks
Powered by GitBook
On this page
  1. Reference

Time-locks

PreviousSpending LimitsNextSDKs

Last updated 10 months ago

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