I have a script:
$json_url = "https://blockchain.info/ticker";
$json = file_get_contents($json_url);
$json=str_replace('},
]',"}
]",$json);
$data = json_decode($json);
echo "$" . ($data->USD->last);
This works perfect!
Now I have a second version of this:
$json_url3 = "https://blockchain.info/da/unconfirmed-transactions?format=json";
$json3 = file_get_contents($json_url3);
$json3=str_replace('},
]',"}
]",$json3);
$data3 = json_decode($json3);
echo "Latest hash: " . ($data3->txs->hash) . "<br>";
Why does the send script not work? I have a $json2
running without any issues with another API call as well.