Exemple #1
0
 public function getBalance($username)
 {
     $wallet = array();
     $bitcoin = new Bitcoin('http://' . BITCOIN_WALLET_SERVER . ':' . BITCOIN_WALLET_PORT, BITCOIN_WALLET_USERNAME, BITCOIN_WALLET_PASSWORD);
     $wallet['address'] = $bitcoin->getaddressesbyaccount($username);
     $wallet['balance'] = $bitcoin->getbalance($username);
     $wallet['key'] = $username;
     return compact('wallet');
 }