bitcoin random key

-1

$blockchain_receive_root = "https://api.blockchain.info/";
$mysite_root = "mysite url";
$secret = "CHANGE_TO_RANDOM_SECRET";
$my_xpub = "CHANGE_TO_XPUB_KEY";
$my_api_key = "CHANGE_TO_API_KEY";

I have api key and xpub key but how to set the random secert key

cibi

Posted 2017-04-27T18:54:06.320

Reputation: 1

Answers

0

The secret can be anything you want it to be. It's intended to prevent malicious users from running your callback URL manually.

Your callback will do a check similar to:

if ($secret !== "mycoolsecret") { die (); }

m1xolyd1an

Posted 2017-04-27T18:54:06.320

Reputation: 3 356