当前位置: 首页>>代码示例>>PHP>>正文


PHP jsonRPCClient::getaddressesbyaccount方法代码示例

本文整理汇总了PHP中jsonRPCClient::getaddressesbyaccount方法的典型用法代码示例。如果您正苦于以下问题:PHP jsonRPCClient::getaddressesbyaccount方法的具体用法?PHP jsonRPCClient::getaddressesbyaccount怎么用?PHP jsonRPCClient::getaddressesbyaccount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jsonRPCClient的用法示例。


在下文中一共展示了jsonRPCClient::getaddressesbyaccount方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

$dbusr = "Your_Username";
// database username
$dbpwd = "Your_password";
// database password
$dbtbl = "Your_DB_Name";
// database name
// connect to the database
$db_handle = mysql_connect($dbhst, $dbusr, $dbpwd) or die("cannot connect");
$db_found = mysql_select_db($dbtbl) or die("cannot select DB");
$user_session = $_SESSION['user_session'];
// set session and check if logged in
if (!$user_session) {
    $Logged_In = 2;
} else {
    $Logged_In = 7;
    $RPC_Host = "127.0.0.1";
    // host for bitcoin rpc
    $RPC_Port = "8333";
    // port for bitcoin rpc
    $RPC_User = "Your_Username";
    // username for bitcoin rpc
    $RPC_Pass = "Your_Password";
    // password for bitcoin rpc
    // dont change below here
    $nu92u5p9u2np8uj5wr = "http://" . $RPC_User . ":" . $RPC_Pass . "@" . $RPC_Host . ":" . $RPC_Port . "/";
    $Bytecoind = new jsonRPCClient($nu92u5p9u2np8uj5wr);
    $wallet_id = "zelles(" . $user_session . ")";
    $Bytecoind_Balance = $Bytecoind->getbalance($wallet_id, 6);
    $Bytecoind_accountaddresses = $Bytecoind->getaddressesbyaccount($wallet_id);
    $Bytecoind_List_Transactions = $Bytecoind->listtransactions($wallet_id, 10);
}
开发者ID:iamraghavgupta,项目名称:WalletScript,代码行数:31,代码来源:auth.php

示例2: getWalletsFromAccount

 function getWalletsFromAccount($token = "Unset")
 {
     if ($token == "Unset") {
         return null;
     } else {
         $bitcoind = new jsonRPCClient('http://' . $this->__get("username") . ':' . $this->__get("password") . '@' . $this->__get("btcserver") . ':' . $this->__get("btcport") . '/');
         $newaddr = $bitcoind->getaddressesbyaccount(md5($token));
         return $newaddr;
     }
     return null;
 }
开发者ID:djbakerman,项目名称:botjack,代码行数:11,代码来源:DanCoin.php

示例3: catch

		
		<?php 
try {
    $bitcoin->getinfo();
} catch (Exception $e) {
    echo 'Error: Bitcoin server is down.  Please email system administrator.';
    $down = true;
}
if (!$down) {
    global $db;
    $accounts = $bitcoin->listaccounts();
    //print_r($accounts);
    $count = 0;
    foreach ($accounts as $a => $t) {
        //if($a!==''){
        $bc = $bitcoin->getaddressesbyaccount($a);
        print '<tr><td align="left">' . $a . '</td><td border="1px">';
        foreach ($bc as $b) {
            $v = $bitcoin->getreceivedbyaddress($b);
            print $b . '<br />';
            $sql = 'SELECT * FROM ' . TABLE_ORDERS_STATUS_HISTORY . ' AS osh LEFT JOIN ' . TABLE_ORDERS_STATUS . ' AS os ON os.orders_status_id = osh.orders_status_id WHERE os.orders_status_name = "' . Pending . '" AND osh.comments LIKE "%' . $b . '%"';
            $result = $db->Execute($sql);
            if ($result->RecordCount() > 0) {
                while (!$result->EOF) {
                    $sql = 'SELECT * FROM ' . TABLE_ORDERS . ' LEFT JOIN ' . TABLE_ORDERS_STATUS . ' on orders_status_id WHERE orders_id = ' . $result->fields['orders_id'] . ' AND orders_status = "1"';
                    $order = $db->Execute($sql);
                    echo '<a href="' . zen_href_link('orders.php?page=1&oID=' . $result->fields['orders_id'] . '&action=edit', '', 'NONSSL') . '">Order ' . $result->fields['orders_id'] . '</a> | Due ' . $order->fields['order_total'] * $order->fields['currency_value'] . ' BTC | Received ' . $v . ' BTC  | ' . $result->fields['orders_status_name'] . '<br />';
                    $result->MoveNext();
                }
            }
            $count++;
开发者ID:oktoshi,项目名称:Zen-Cart-Bitcoin-Payment-Module,代码行数:30,代码来源:bitcoin.php


注:本文中的jsonRPCClient::getaddressesbyaccount方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。