Beispiel #1
0
 /**
  * @Route("/{round}/transactions", name="wallet_transactions", requirements={"round": "\d+"})
  * @Template()
  */
 public function walletTransactionsListAction($round = null)
 {
     $round = $round ? $this->roundRepo->find($round) : $this->roundRepo->findCurrent();
     $result = $this->manager->rawRequest('listtransactions', [$round->getWalletAccount(), 999999]);
     // we need to decode and encode to get pretty formated result
     $result = json_encode(json_decode($result), JSON_PRETTY_PRINT);
     return new Response('<pre>' . $result . '</pre>');
 }