blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
912 stars 520 forks source link

Create New HD Account fails with ERR_SECPASS #276

Open juliogarces opened 7 years ago

juliogarces commented 7 years ago

When I create a new Account the service fails with ERR_SECPASS when the second password is enabled in the account security settings. If second password are disabled the api call works

According to the documentation the second password is not needed

Create New HD Account

Endpoint: /merchant/:guid/accounts/create

Query Parameters:

label - label to assign to the newly created account (optional)
password - main wallet password (required)
api_code - blockchain.info wallet api code (optional)

So not sure if the documentation are wrong, the api are wrong or something extra are needed in the account settings and need to be documented

Service v0.26.0, Node v7.10.0

jtormey commented 7 years ago

Ah, the documentation is wrong here. For operations that require deriving from your wallet seed (like creating a new account), second password is required if your wallet is double encrypted.

juliogarces commented 7 years ago

Thanks for the quick response @jtormey!

GoldFund commented 5 years ago

Hi, I get this, It will create the wallet account, but return these errors. Can any one help me?

$ blockchain-wallet-service start --port 3030 1539487288380 - info: blockchain.info wallet service v0.26.1 running on http://127.0.0.1:3030 wallet.external not set: TypeError: Class constructor Exchange cannot be invoked without 'new' at new SFOX (C:\Users\Administrator.ABNNEWSWIRE\AppData\Roaming\npm\node_modules\blockchain-wallet-service\node_modules\bitcoin-sfox-client\lib\sfox.js:56:98) at new External (C:\Users\Administrator.ABNNEWSWIRE\AppData\Roaming\npm\node_modules\blockchain-wallet-service\node_modules\blockchain-wallet-client\lib\external.js:27:20) at fetchSuccess (C:\Users\Administrator.ABNNEWSWIRE\AppData\Roaming\npm\node_modules\blockchain-wallet-service\node_modules\blockchain-wallet-client\lib\external.js:111:12) at at process._tickCallback (internal/process/next_tick.js:188:7)