Skip to main content
4 votes

Sign CPI as both a PDA and signer of TX

You do not need to explicitly pass the non-PDA signer into the signer_seeds array. It will be passed through from the caller automatically as long as is_signer is true in the corresponding AccountInfo ...
Fuzzy Yeti's user avatar
3 votes

How do I configure a multi-sig as the update authority of a program?

Yes, definitely checkout Squads! It's an open-source multisig on Solana with amazing docs and is built by a really great team. If you follow the step-by-step guide linked below, you should be good. In ...
Nick Garfield's user avatar
2 votes

Is there JS libraries for multisig/threshold sign on solana?

The coral-xyz/multisig program is meant to provide a generic multisig, including JS / TS support. You can find the program code at https://github.com/coral-xyz/multisig, note that it is unaudited, ...
Jon C's user avatar
  • 19.6k
2 votes

Is there JS libraries for multisig/threshold sign on solana?

There is no generic MS/TS support on solana. SPL Token specifies its own M:N MS, which the @solana/spl-token package supports. Outside that, you'd need to focus the question on a specific MS/TS ...
trent.sol's user avatar
  • 4,585
2 votes

Token-2022 extension enforcing immutable owner

Reassigning the owner of an ATA is antipattern -- many dapps just assume that a wallet's account for a token is the ATA, without checking that the owner is valid, so you could trick a dapp into using ...
Jon C's user avatar
  • 19.6k
2 votes

Sign multiple transactions at once by initializing an AccountLoader account in the first transaction and using this initialized account in the 2nd tx

As you've noticed, sending two transactions at once that have some dependent state is extremely error-prone, since you can't guarantee the order in which the leader will process the transactions. If ...
Jon C's user avatar
  • 19.6k
2 votes

How can I make multisig DAO in anchor?

Take a look at the TribecaHQ programs, which are Anchor programs to perform DAO operations: https://github.com/TribecaHQ/tribeca
Jon C's user avatar
  • 19.6k
2 votes
Accepted

SPL Token 2022 multisig initialization & update

So apparently: It can be a PDA, but it doesn’t need to be. It’s just not possible. To achieve that, the best is to put a PDA as the authority and have the program sign with it once it has verified ...
Vincent Berthier's user avatar
1 vote
Accepted

How can I make multisig DAO in anchor?

I would consider getting inspiration about DAO development in the SPL DAO Governance program (under Solana program library, https://github.com/solana-labs/solana-program-library/blob/master/governance/...
chalda's user avatar
  • 1,657
1 vote

Sign CPI as both a PDA and signer of TX

Here is a simple example using the CpiContext::new_with_signer to transfer some tokens from a token vault owned by this program. Inside the seeds I put in the values needed to create the PDA of the ...
Kriptikz's user avatar
1 vote

spl-token 2.2.0 at solana 1.13.5 getting multisig error: Client(PresignerError(VerificationFailure))

downgrading to the last stable version of the cli works - v1.13.7 seems to work
jtan-sl's user avatar
  • 11
1 vote

A special private key that can be used to make a TX to a certain wallet ONLY

Your objectives are valid and you've correctly identified storing private keys on a server as a security risk. A more appropriate solution might be to write a simple solana program (smart contract) ...
neft's user avatar
  • 286
1 vote

Error: unknown signer when trying to move SOL from multisig wallet from nodejs

I found out the issues, there is not way to send out SOL from a token account, so this multisig implementation don't support SOL, and someone did sent it some SOl... Issue described here: https://...
recoverySol's user avatar
1 vote
Accepted

Invalid account data on multisig token transfer from nodejs

You're very close! The term owner is unfortunately overloaded in the context of SPL tokens, since owner can either mean: the address that can sign for transfers from an account more generally, the ...
Jon C's user avatar
  • 19.6k
1 vote

How does solana handle multisig

Solana multisig can sort of be categorized into two buckets... Synchronous If an instruction requires multiple signers that may or may not be the same account, so long as the person or application ...
m_callens's user avatar
  • 909
1 vote

Error: Invalid account data for instruction

I ran into this problem. The issue for me was that you have to declare all accounts being accessed not only when you call "executeTransaction" but also those that will be used on the stored ...
Ahkilleux's user avatar
  • 155

Only top scored, non community-wiki answers of a minimum length are eligible