Hi,
I'm posting in this thread because i don't quite understand the RPC Api of blockchain.info.
I set up a node.js client and connected via my wallet credentials to the blockchain RPC API. No problem there. I can lookup my balance and stuff, all fine there.
BTW I'm using node-bitcoin.
The problem is that when i call getNewAddress i get errors and i don't know what they mean:
ChainListener.prototype.getNewAddress = function(next) {
this.client.getNewAddress(null, function(err, address) {
if(err) {
console.log(err);
} else {
next(address);
}
});
};
gives me this output:
{ [Error] code: -32603 }
I also tried to put the account in:
ChainListener.prototype.getNewAddress = function(next) {
var self = this;
this.client.getNewAddress(self.client.rpc.opts.user, function(err, address) {
if(err) {
console.log(err);
} else {
next(address);
}
});
};
This gives me:
{ [Error: Second Password Expired] code: -32603 }
FYI: self.client.rpc.opts.user is my account address for the Wallet on blockchain.info.
What does this second error mean. I read on the api documentation, that a second password is required, and i also set it up in my account but i don't know where to put it
in my programm.
Please help
EDIT: I just deactivated my second password and boom, it works as expected. But WHY is the RPC API telling me that a second password is required?
I don't get it?!

Method: getnewaddress
Parameters: (String label = null)
Description: Returns a new bitcoin address for receiving payments. If [account] is specified (recommended), it is added to the address book so payments received with the address will be credited to [account].
Returns: String
Second Password Required