Ethereum addresses but my method aren't working.
Link to file: https://ethplorer.io/service/service.php?data=0x7F585B9130c64e9e9F470b618A7badD03D79cA7E
My method:
<?php $json = file_get_contents('https://ethplorer.io/service/service.php?data=0x7F585B9130c64e9e9F470b618A7badD03D79cA7E");
$data = json_decode($json, true);
foreach($data as $eth) {
echo $eth['address']['balance'];
}
?>
It outputs a blank page.
I'll appreciate if anyone can help with a working method.
Try print_r($data) before for each loop to view exact structure of your data and echo selected details accordingly
Обсуждают сегодня