D
Size: a a a
D
CI
D
CI
D
CI
D
CI
D
CI
D
D
Masternodes: 4734
Deterministic: 3701 (78.18%)
80% (estimated): in 1 days
24h progress: +67 (1.42%)
S15 activation: April 2, 2019
Last registration: 30 min ago
Updated: 12:26:03 UTC
CI
Masternodes: 4734
Deterministic: 3701 (78.18%)
80% (estimated): in 1 days
24h progress: +67 (1.42%)
S15 activation: April 2, 2019
Last registration: 30 min ago
Updated: 12:26:03 UTC
D
Α
CI
<?php
$url = "https://www.dashninja.pl/data/masternodeslistfull-0.json";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$a = json_decode(curl_exec($ch), true);
$list = [];
foreach ($a['data']['masternodes'] as $row) {
if ($row['ActiveCount'] == 0) {
continue;
}
$lastPaid = $row['MasternodeLastPaid'] ? time() - $row['MasternodeLastPaid'] : 0;
$active = $row['MasternodeActiveSeconds'];
if ($lastPaid > $active || $lastPaid === 0) {
$duration = $active;
} else {
$duration = $lastPaid;
}
$dtF = new \DateTime('@0');
$dtT = new \DateTime("@{$duration}");
$list[$duration] = [
'duration' => $dtF->diff($dtT)->format('%a:%H:%I:%S'),
'key' => $row['MasternodePubkey'],
];
}
krsort($list);
$list = array_values($list);
$list = array_slice($list, 0, count($list) * 0.1);
echo json_encode($list, JSON_PRETTY_PRINT|JSON_FORCE_OBJECT);
t
<?php
$url = "https://www.dashninja.pl/data/masternodeslistfull-0.json";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$a = json_decode(curl_exec($ch), true);
$list = [];
foreach ($a['data']['masternodes'] as $row) {
if ($row['ActiveCount'] == 0) {
continue;
}
$lastPaid = $row['MasternodeLastPaid'] ? time() - $row['MasternodeLastPaid'] : 0;
$active = $row['MasternodeActiveSeconds'];
if ($lastPaid > $active || $lastPaid === 0) {
$duration = $active;
} else {
$duration = $lastPaid;
}
$dtF = new \DateTime('@0');
$dtT = new \DateTime("@{$duration}");
$list[$duration] = [
'duration' => $dtF->diff($dtT)->format('%a:%H:%I:%S'),
'key' => $row['MasternodePubkey'],
];
}
krsort($list);
$list = array_values($list);
$list = array_slice($list, 0, count($list) * 0.1);
echo json_encode($list, JSON_PRETTY_PRINT|JSON_FORCE_OBJECT);
t