예제 #1
0
 /**
  * Fetch the balance of a wallet. This should be used as an estimate only and will include unconfirmed transactions and possibly double spends.
  *
  * @param string $wallet_id Wallet Identifier used to Login
  * @param string $main_password Your Main My wallet password
  * @return string
  */
 public static function GetWalletBalance($wallet_id, $main_password)
 {
     $instance = new Wallet();
     return $instance->getBalance($wallet_id, $main_password);
 }
예제 #2
0
<h4>Dashboard</h4>
<div class="tab-content-inner">
	<span>
		<?php 
echo number_format(Wallet::getBalance(), 8);
?>
 <i class='fa fa-btc'></i>
		<label>Balance</label>
	</span>

	<span>
		<?php 
echo Wallet::getAddressesCount();
?>
		<label>Addresses</label>
	</span>

	<span>
		<?php 
echo Wallet::getTransactionsCount();
?>
		<label>Transactions</label>
	</span>
</div>