SHARE
TWEET

Untitled

a guest May 20th, 2019 73 in 3 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $explorerUrl = 'https://explorer.projectmerge.org/ext/getmasternodes';
  3. $myTxIds = ["76c727c128dc1c32df8f4e49bbc0202d1d64cf9dcc04bc44f12ff0f4f9a1cb01",
  4.             "80ec01d5cd1e247297ccc46826a8b1ce45478096b64550c789968ea9c91105f2",
  5.             "b28572a738fcef3dd98de34500567cf2e46f21b93a00fce203ed5feebf8f459e"
  6. ];
  7. $dataContainer = [];
  8. $data = file_get_contents($explorerUrl);
  9. $data = json_decode($data,true);
  10. // Prepare Data
  11. foreach($data['data'] as $item)
  12. {
  13.    
  14.    if(!in_array($item['txhash'],$myTxIds))
  15.     continue;
  16.    else $dataContainer[]=$item;
  17. }
  18. ?>
  19. <!DOCTYPE html>
  20. <html lang="eng">
  21.     <head>
  22.         <meta charset="UTF8">
  23.         <title>Masternode Viewer</title>
  24.     </head>
  25.     <body>
  26.         <h1>Masternode Viewer</h1>
  27.         <table>
  28.         <tr>
  29.             <th>Rank</th>
  30.             <th>Network</th>
  31.             <th>TxHash</th>
  32.             <th>Outidx</th>
  33.             <th>Status</th>
  34.             <th>Version</th>
  35.             <th>lastseen</th>
  36.             <th>activetime</th>
  37.             <th>lastpaid</th>
  38.             <th>_id</th>
  39.             <th>addr</th>
  40.         </tr>
  41.             <?php
  42.                 foreach($dataContainer as $row)
  43.                 {
  44.                     echo "<tr>\r\n";
  45.                     foreach($row as $prop)
  46.                         echo "<td>$prop</td>\r\n";
  47.                     echo "</tr>\r\n";
  48.                 }
  49.             ?>
  50.         </table>
  51.     </body>
  52. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top