From 3e9b4acd4867bb6515a152f11507a739fea421f7 Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Wed, 24 Jan 2018 16:35:49 -0600 Subject: [PATCH] add get_mempool_txs --- monero/library.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/monero/library.php b/monero/library.php index 774a6a1..a859f64 100644 --- a/monero/library.php +++ b/monero/library.php @@ -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; + } + }