Bitcoin Forum
October 02, 2025, 06:15:23 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Service Discussion / Re: Blockchain Receive API v2 Callback Logs on: November 11, 2017, 10:05:31 AM
Everything works when I generate new address. And no output at all when I try to get callback Logs.

Have you tried echoing the callback_log URL and visiting the link with your browser directly?

Code:
echo $blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key;

Maybe the response by blockchain's server is indeed empty and the problem lies somewhere else.

I tried, the answer is:
{}

like nothing at all

Blockchain support said that they don't know what's the problem.
My another website has the same problem...
2  Economy / Service Discussion / Re: Blockchain Receive API v2 Callback Logs on: October 26, 2017, 09:33:37 PM
What's the output when directly echoing the get_file_contents result without trying to parse it through json_decode?

Meaning:

Code:
$resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key);

echo $resp;

Nothing at all

Do you get an output if you try accessing other URLs? For example:

Code:
$resp = file_get_contents("http://www.google.com/");

echo $resp;


Are you running the script on a local server? If yes, maybe it's your firewall.

Is allow_url_fopen enabled in your php.ini file? See here: http://php.net/manual/en/filesystem.configuration.php

Everything works when I generate new address. And no output at all when I try to get callback Logs.
3  Economy / Service Discussion / Re: Blockchain Receive API v2 Callback Logs on: October 26, 2017, 03:13:04 PM
What's the output when directly echoing the get_file_contents result without trying to parse it through json_decode?

Meaning:

Code:
$resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key);

echo $resp;

Nothing at all
4  Economy / Service Discussion / Blockchain Receive API v2 Callback Logs on: October 26, 2017, 08:38:46 AM
Hello!
Please help me to see my callback logs because it's becoming a real problem for me.
I tried to do as described in API documentation (https://blockchain.info/api/api_receive) but i got no result.


This is how I generate new Address:
Code:
$blockchain_root = "https://blockchain.info/";
$blockchain_receive_root = "https://api.blockchain.info/";
$mysite_root = "http://my-site.com/";
$secret = "testSecret";
$my_api_key = "testKey";


$user_id = 1111;
$callback_url = $mysite_root . "receive_api.php?user_id=" . $user_id . "&secret=" . $secret;

$my_xpub = "TestXpub";
$resp = file_get_contents($blockchain_receive_root . "v2/receive?key=" . $my_api_key . "&callback=" . urlencode($callback_url) . "&xpub=" . $my_xpub);

 $response = json_decode($resp);
 $address = $response->address;


And here is how I try to get callback logs:
Code:
$mysite_root = "http://my-site.com/";
$secret = "testSecret";
$my_api_key = "testKey";
$user_id = 1111;
$callback_url = $mysite_root . "receive_api.php?user_id=" . $user_id . "&secret=" . $secret;

$resp = file_get_contents($blockchain_receive_root . "v2/receive/callback_log?callback=" . urlencode($callback_url) . "&key=" . $my_api_key);

 echo $response = json_decode($resp);
5  Economy / Service Discussion / Re: Blockchain Receive API stopped to monitor some addresses on: October 23, 2017, 02:17:24 PM
If you coded this, contact blockchain.info. if not, try contacting the person who wrote it for you and see if they have a solution. I think there's too little information for us to go off here unless another user is accustomed to the blockchain API.

How to contact them? I did not find any email or ticket support. Only FAQ
6  Economy / Service Discussion / Blockchain Receive API stopped to monitor some addresses on: October 23, 2017, 11:52:58 AM
Hello! I have a headache for a week
I have API that seems to work great.
But some transactions do not get callback notifications and some do.
For example. User1 generates new address, sends BTC and callback works good. But In a week user1 decides to send BTC again -> sends to the same address and callback url doesn't receive any callback notifications. I see the transaction being confirmed many times but 0 callback notifications received. And any other transactions to the same address will not receive any callback notifications (if it didn't receive for the last one). And if User2 decides to send btc -> he/she generates new address and everything works well. User2 may even send more btc later and callback will be received as well. I do not know what's the problem... I thought maybe it depends on time, how much days ago address has been generated but seems like even some old addresses work well ( send callback notification).
Also I do not see some transactions in blockchain.info dashboard.
And I think some transactions that did not received callback notifications may not be credited to my BTC balance. Don't know why.
I have script that uses another xPub if the last one reaches gap limit. So the gap limit is not a problem any more. Totally 5 xPub keys are in use.

PLEASE HELP!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!