BlockChain API:付款,出现意外错误问题

时间:2017-11-15 07:45:34

标签: php blockchain blockchain.info-api

我们在BlockChain API中面临问题 - 付款。

当我们使用下面提到的参数调用API时,我们会收到意外错误。

网址:http://localhost:3000/merchant/SENDER_GUID/payment?password=SENDER_PASSWORD&api_code=MY_API_CODE&to=38ccq12hPFoiSksxUdr6SQ5VosyjY7s9AU&amount=100000

我们的PHP代码:

function makePayment(){
        $user = $this->checkUserId($this->input->post('user_id'));
        return json_decode(file_get_contents('http://localhost:3000/merchant/'.$user[0]->guid.'/payment?password='.$this->input->post('password').'&api_code='.API_CODE.'&to='.$this->input->post('to').'&amount='.$this->input->post('amount').'&from='.$user[0]->address.'&fee='.$this->input->post('fee')));
    }

注意:我们也尝试过付费或免费,来自,api_code

获得回应:

{"error":"**Unexpected error**, please try again"}

我们如何解决这个问题?当我们正在开发localhost时,我们是否会遇到此问题,我们是否需要将其解决?

0 个答案:

没有答案
相关问题