add get_mempool_txs

This commit is contained in:
cryptochangements34 2018-01-24 16:35:49 -06:00 committed by GitHub
parent 590779c263
commit 3e9b4acd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
} }