Im trying to initialize a deployed program and have been running into this error. enter image description here

Here is the command that the cli is executing.. enter image description here

  • please copy paste the code and the errors instead of posting images Mar 15, 2023 at 12:54

1 Answer 1


The arguments to your CLI command are being directly mapped into PublicKey instances, but the arguments themselves are:

--min-signatures 1 /Users/...

Which is obviously not base-58 compliant. You'll need to parse the keypair file path in the arguments list, read the file to get the keypair byte array, then instantiate it using Keypair.fromSecretKey(<uint8array>). You can then get the public key from the keypair after its instantiated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.