From a33f5e807e0ee2a73e8c03fbc4619e205a8687df Mon Sep 17 00:00:00 2001 From: igorromin Date: Tue, 2 Apr 2019 15:24:17 +0700 Subject: [PATCH] Add get_transfers function --- src/Wallet.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Wallet.php b/src/Wallet.php index 2645dd3..2112e3f 100644 --- a/src/Wallet.php +++ b/src/Wallet.php @@ -258,4 +258,18 @@ public function stopWallet() $body = ['method' => 'stop_wallet']; return $this->_request($body); } + + /** + * Returns a list of transfers. + * @param array $options + * @return string + */ + public function getTransfers($options) + { + $body = [ + 'method' => 'get_transfers', + 'params' => $options + ]; + return $this->_request($body); + } } \ No newline at end of file