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,
})