blockchain / service-my-wallet-v3

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

Unexpected error, please try again #458

Closed arif7576 closed 4 years ago

arif7576 commented 4 years ago

I want a solution below error.. please help me. $url = "http://localhost:3030/merchant/$guid/payment?password=$main_password&to=$address&amount=$amount";

$ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $url); $ccc = curl_exec($ch); $json= json_decode($ccc, true);

    echo "<pre>";
    var_dump($json);

        echo "</pre>";

array(1) { ["error"]=> string(34) "Unexpected error, please try again" } image

alexanderpavlovru commented 4 years ago

You must define the param "from=0". It is an index of address in your wallet. And make sure you set amount in satoshi.

arif7576 commented 4 years ago

Thanks it's working