protected function getBalances()
 {
     $balances = array();
     $allAddresses = $this->multichain->getAddresses();
     array_walk($allAddresses, function (&$address) use(&$balances) {
         $balance = $this->multichain->getAddressBalances($address);
         foreach ($balance as $asset) {
             $balances[$address][] = [$asset["name"], $asset["qty"]];
         }
     });
     return $balances;
 }
 /**
  * Lists information about the count most recent transactions in this node’s wallet, including how they affected
  * the node’s total balance. Use skip to go back further in history and includeWatchOnly to consider watch-only
  * addresses as if they belong to this wallet. Use verbose to provide the details of transaction inputs and
  * outputs. Note that unlike Bitcoin Core’s listtransactions command, the response contains one element per
  * transaction, rather than one per transaction output.
  *
  * @group transaction
  */
 public function testListWalletTransactions()
 {
     $this->multichain->listWalletTransactions(10, 0, false, false);
 }