Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkTX($id,$addr) {
- include("settings.php");
- $getjson = file_get_contents("https://blockchain.info/rawtx/". $id);
- $decode = json_decode($getjson);
- $outs = $decode->out;
- foreach ($outs as $output) {
- $value = $output->value / 100000000;
- if($output->addr == $addr && $value >= $cryptcost) {
- $result = TRUE;
- break;
- } else {
- $result = FALSE;
- }
- }
- return $result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement