Open cungxem opened 7 years ago
ERR_IS_HD means your wallet is already an hd wallet and there's no need to upgrade. To get the next address for one of your HD accounts, use https://github.com/blockchain/service-my-wallet-v3#get-hd-account-receiving-address
I have using the last version of nodejs, service my wallet v3 To get list address i'm using php
`<?php $data = file_get_contents("http://localhost:3000/merchant/$wallet_id/list?password=$wallet_pass");
var_dump(json_decode($data));`
?> and response is
object(stdClass)#1 (2) { ["addresses"]=> array(0) { } ["warning"]=> string(167) "This endpoint has been deprecated, for the best safety and security, use the HD API instead: https://github.com/blockchain/service-my-wallet-v3#enable-hd-functionality" }
then i tried to enable hd functionality by request
<?php $data = file_get_contents("http://localhost:3000/merchant/$wallet_id/enableHD?password=$wallet_pass"); var_dump(json_decode($data));
but return for enable hd is NULL.
What can i do in this case to get list address and do something with wallet api.
This is a log on server
1497816439578 - debug: Debug messages are enabled 1497816439581 - info: blockchain.info wallet service v0.26.0 running on http://127.0.0.1:3000 1497816446125 - debug: Logging in 1497816446518 - debug: Created new session token 1497816446867 - debug: Fetched wallet 1497816447025 - debug: Decrypted wallet 1497816448327 - debug: Fetching wallet history 1497816448707 - error: ERR_IS_HD
Sorry about my english. Thanks.