mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
add get_mempool_txs
This commit is contained in:
parent
590779c263
commit
3e9b4acd48
1 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue