Advertisement
Guest User

Codesnipit BTC Depsoti

a guest
Nov 14th, 2016
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?php
  2. $id = "";
  3. $pw = "";
  4. $url = "https://blockchain.info/merchant/$id/new_adress/password=$pw$label=$username"];
  5. $json = json_decode(file_get_contents($url), true);
  6. $addy = $json["address"];
  7. $qrcode = "https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl=$addy";
  8.  
  9. //Deposit Ends here
  10. $urlbalance = "https://blockchain.info/merchant/$id/address_balance?password=$pw&address=$getaddress";
  11. $json = json_decode(file_get_contents($url), true);
  12. $recivedstatoshi = $json["balance"];
  13.  
  14. $deposit = intval($recivedstatoshi) / 100, 8);
  15. $db->query("UPDATE users SET balance=balance+depsosit WHERE username='$user'");
  16.  
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement