0

I set up the bitcoin daemon and galaxycash daemon on my server. And i was using this library

easybitcoin.php

to contact the daemon via rpc . Somehow i remeber that i used this function encryptwallet("test") but whenever i try to use this function now sendfrom("walletaddress","towalletaddress",1);

i get this message

Error: Please enter the wallet passphrase with walletpassphrase first.

so i used this function walletpassphrase("test",60);

but am getting this error

Error: The wallet passphrase entered was incorrect.

Does any wallet address has it's own passphrase in bitcoin daemon? Or it's only 1 passphrase for all wallets in 1 daemon? And how can i get the passphrase of the address because i need to use it with this function sendfrom Am using rpc for PHP.

0

Note that an individual address is not a wallet. A wallet is a collection of addresses.

Does any wallet address has it's own passphrase in bitcoin daemon? Or it's only 1 passphrase for all wallets in 1 daemon?

A wallet has its own passphrase; passphrases are not per-address (that would be impractical).

You can have multiple wallets in a daemon each with different passphrases (the most recent versions of Bitcoin Core support multiwallet).

And how can i get the passphrase of the address

Passphrases are not automatically generated. You as the user must have set it. If you do not know the passphrase, then there is nothing that you can do.

  • Okay so there's a big diffrent between wallet and address . I generate new address using the function 'getnewaddress' . but this does not allow you in the parameters to generate your passphrase . How can i generate it? and how to create new wallet instead of address? – Ys3 Apr 10 '18 at 16:03
  • Passphrases are not automatically generated. You have to set it yourself on the entire wallet using the encryptwallet or changewalletpassphrase commands. You cannot create a new wallet from the command line; you have to start Bitcoin Core with the -wallet option in order to specify a new wallet that will be created if it does not exist. – Andrew Chow Apr 10 '18 at 16:05
  • So does it mean in when you start a bitcoind . you only have one wallet? . you can only create one wallet? Or is it possible that i can create another one? – Ys3 Apr 10 '18 at 16:16
  • Means all the rpc command are happening in one wallet . you cannot run two wallets in same time in daemon? – Ys3 Apr 10 '18 at 16:19
  • You can run two wallets if your software supports multiwallet (which the latest version of Bitcoin Core does). By default, you will only be using one wallet. – Andrew Chow Apr 10 '18 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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