PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 28, 2022

[FIXED] How to call a solana program with multiple signers

 July 28, 2022     blockchain, rust, solana     No comments   

Issue

Let's say I have a program where I want the initialization call to be signed by multiple wallets. How to proceeds, I suppose I pass x accounts as signers, but in terme of UI/user interactions how does that play out?


Solution

Ok I think this is the way. Indirection through a program that does the gathering of signs.

You init a multisig tx, set all the details and signers count.

Signers refer this calling the multisig program, effectively signing it

Once the treshold is reach, you call the execute ix of that multisig program, and it does a multisig CPI call.

https://github.com/project-serum/multisig/blob/master/programs/multisig/src/lib.rs



Answered By - Acammm
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing