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

Permissions

Permissions are a way to restrict members in your multisig from certain interactions. This can be helpful if there are certain accounts that serve have a single use-case like voting for example.

This is how you can create a multisig and set certain permissions to you members.

multisig.rpc.multisigCreate({
    connection,
    creator,
    multisigPda,
    configAuthority: null,
    timeLock: 0,
    threshold: 1,
    members: [{
            key: coolFriend1PublicKey,
            permissions: Permissions.all(),
        },
        {
            key: coolFriend2PublicKey,
            permissions: Permissions.fromPermissions([Permission.Vote]),
        },
    ],
    createKey,
})
PreviousTime-locksNextSDKs