Calling Multisig authority into Solana token code

Hi. Anyone worked on Multisig authority within their coin project?
Im interested in deploying two functions, (Freeze authority/function Thaw function) but the code Im copying from Solana is not populating
the Multisig authority

I want to perform tests on “freeze” function and “thaw” on devnet to see how they behave on what power (Utility function) they have when called into the smart contract.

However when I run the command line

for i in (seq 3); do solana-keygen new --no-passphrase -so “signer-${i}.json”; done

Wrote new keypair to signer-1.json

Wrote new keypair to signer-2.json

Wrote new keypair to signer-3.json

This returns an error

C:\Users\AZ\Desktop>solana (seq 3); do solana-keygen new --no-passphrase -so “signer-${i}.json”; done
error: Found argument ‘(seq’ which wasn’t expected, or isn’t valid in this context

USAGE:
solana [FLAGS] [OPTIONS]

For more information try --help

C:\Users\AZ\Desktop>Wrote new keypair to signer-1.json
‘Wrote’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\AZ\Desktop>Wrote new keypair to signer-2.json
‘Wrote’ is not recognized as an internal or external command,
operable program or batch file.

C:\Users\AZ\Desktop>Wrote new keypair to signer-3.json

Could someone kindly post across the correct call commands that will give call down the Multisig authority into my smart contract - thanks!

Ps. Does the freeze authority only work on the owners wallet address? or can it target any wallet address? Thanks for any help!

Hey there! The reason you are getting an error is because the command in the docs was meant for a bash shell, the one that comes on Linux machines, not your windows cmd or powershell.

In this case, the easiest solution is just to run the command yourself, manually, 3 times. For instance, you can paste this into your terminal:

solana-keygen new --no-passphrase -so “signer-1.json”
solana-keygen new --no-passphrase -so “signer-2.json”
solana-keygen new --no-passphrase -so “signer-3.json”

Continuing with the guide, the next example is to get the public key of each of your newly generated accounts. The equivalent commands without bash syntax would be:

solana-keygen pubkey signer-1.json
solana-keygen pubkey signer-2.json
solana-keygen pubkey signer-3.json

I think the rest of the commands should work fine on windows, but let me know if you run into any more trouble!

1 Like

Hey Zicklag! Many thanks! :star2: will run the commands manually and hopefully get the Mulitsig authority called. Have you used the Freeze/thaw authority? Very interested to see what function/powers it can call. Again - thanks for superquick reply! and excellent explainer, code cmds. No doubt will have more Qs as I explore and build - Cheers!

1 Like

No, I haven’t used it myself, yet. So much stuff to try! :slight_smile:

Glad I can help! Let me know if you get it working!