I am running the docker quick start image for a standalone private test net. I have the network up and running, but I cannot find the secret key for the single funded test account.

Where can I find this secret key? It is not in my logs.

I have seen some answers saying to run stellar-core --newdb, but I do not have the stellar-core command, nor have I seen any documentation on where to download or be able to use the stellar-core cli command.

2 Answers 2


Using the JS-SDK you can do the following:

Network.use(new Network(“Standalone Network; February 2017”));
Keypair.master().secret(); // your secret key

The secret seed for the master account is the sha256 hash of the network passphrase. e.g. "Standalone Network ; February 2017".

  • Thanks! Which libraries are you using for the getBytes method and the UTF_8 variable?
    – Brutus123
    Nov 14, 2018 at 0:29
  • These are Java methods taken from the Scala SDK source. Which language are you targeting?
    – Synesso
    Nov 14, 2018 at 0:31
  • I am targeting javascript
    – Brutus123
    Nov 14, 2018 at 0:35
  • A potential starting point? stackoverflow.com/questions/22861828/…
    – Synesso
    Nov 14, 2018 at 0:38
  • Yea i've been trying to make it work. There is no fromSecretSeed method, but fromSecret seems to only want a string and the solution provided returns a list.
    – Brutus123
    Nov 14, 2018 at 1:24

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.