add get_mempool_txs

monerowp
cryptochangements34 6 years ago committed by GitHub
parent 590779c263
commit 3e9b4acd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -377,4 +377,18 @@ class NodeTools
}
function get_mempool_txs()
{
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'https://xmrchain.net/api/mempool',
));
$resp = curl_exec($curl);
curl_close($curl);
$array = json_decode($resp, true);
return $array;
}
}

Loading…
Cancel
Save