blockchain / service-my-wallet-v3

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

http://localhost:3001/api/v2/create Not Working #360

Open rgbetanco opened 6 years ago

rgbetanco commented 6 years ago

blockchain-wallet-service version 0.26.1 nodejs version v8.11.2

php code

$url = "http://localhost:3001/api/v2/create"; $a = "password=123ascdefrvgtt2133ewdddweyyhhhg&api_code=bb795b17-5d4c-415d-8887-e522923dda97"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $a); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $ext_response = curl_exec($ch); curl_close($ch); return $ext_response'

The error that I get on the service is the following

warn: Created non-HD wallet, for privacy and security, it is recommended that new wallets are created with hd=true

and the return to the API is empty.

What am I doing wrong ? thanks

rgbetanco commented 6 years ago

Nevermind, it is working now.