How to get privatekey by forc

After I create account by forc wallet new . How to get the private key?

Hey @sunnybinb, to get the private key, you can run the command forc wallet account 0 private-key where 0 is the index of your account. On running this command, you will need to enter your local wallet password and after that, it will show your pvt key :slight_smile:

It seems i need to specific a directory?

my default is .fuel/wallets/accounts/70462323981f72bd instead of “~/.fuel/wallets/.wallet” like doc said.

and more one question. To initialize a new wallet, there are two steps.

forc wallet new
forc wallet account new

And I found there are two acounts in the file, does the two accounts are the same? how to understand the two instruction?