Bitcoin Forum
May 29, 2024, 02:17:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 [9] 10 »
161  Economy / Goods / Re: Shogun 2 Total War Codes 1.25btc OBO on: July 02, 2011, 09:05:04 PM
Thanks! Very pleasant to deal with, prompt communication, and the code worked flawlessly.

Highly recommended. Now I just have to play through the first seven games before I can start on this one Smiley


I agree, I bought one too. thanks Current-C!
162  Bitcoin / Project Development / Re: [1 BTC BOUNTY] A way to use sendmany on: July 01, 2011, 08:54:21 AM
Sorry - I was excited to have working code, and promptly forgot to send you coins after posting that message.  Just sent them now.  Tongue

np, I see you sent now, Thanks!

Do the latest patch work?
163  Bitcoin / Project Development / Re: [1 BTC BOUNTY] A way to use sendmany on: July 01, 2011, 08:35:13 AM
Codler, your first example worked perfectly, thank you!  Well, I haven't yet confirmed the receipt of the coins, but it gave me a transaction ID in return, so I am assuming it worked.

The integration with bitcoin-php failed though - below are the errors.  I'll go ahead and send you your half of the reward since the first solution works, but I would love to have it working and integrated with the existing bitcoin-php package, since that's what my site is built around.  So, if you don't mind, take a look at the errors and let me know what you see.

If jav replies in a reasonable amount of time with a quick how-to on using his script, he'll get the other half of the bounty.  Otherwise, I'll pass that half along to you as well.

Code:
( ! ) Notice: Undefined offset: 0 in C:\wamp\www\includes\jsonrpc.php on line 1498
Call Stack
# Time Memory Function Location
1 0.0033 368824 {main}( ) ..\sendmany.php:0
2 0.0708 2095928 BitcoinClient->sendmany( ) ..\sendmany.php:19
3 0.0709 2096048 BitcoinClient->query( ) ..\bitcoin.php:750
4 0.0710 2098736 xmlrpc_client->send( ) ..\bitcoin.php:378
5 0.0710 2098768 xmlrpc_client->sendPayloadHTTP10( ) ..\xmlrpc.php:1223
6 0.0710 2098768 jsonrpcmsg->createPayload( ) ..\xmlrpc.php:1244
7 0.0712 2099040 serialize_jsonrpcval( ) ..\jsonrpc.php:953

( ! ) Warning: reset() expects parameter 1 to be array, null given in C:\wamp\www\includes\jsonrpc.php on line 1443
Call Stack
# Time Memory Function Location
1 0.0033 368824 {main}( ) ..\sendmany.php:0
2 0.0708 2095928 BitcoinClient->sendmany( ) ..\sendmany.php:19
3 0.0709 2096048 BitcoinClient->query( ) ..\bitcoin.php:750
4 0.0710 2098736 xmlrpc_client->send( ) ..\bitcoin.php:378
5 0.0710 2098768 xmlrpc_client->sendPayloadHTTP10( ) ..\xmlrpc.php:1223
6 0.0710 2098768 jsonrpcmsg->createPayload( ) ..\xmlrpc.php:1244
7 0.0712 2099040 serialize_jsonrpcval( ) ..\jsonrpc.php:953
8 0.0717 2099712 serialize_jsonrpcval( ) ..\jsonrpc.php:1498
9 0.0717 2100056 reset ( ) ..\jsonrpc.php:1443

( ! ) Warning: Variable passed to each() is not an array or object in C:\wamp\www\includes\jsonrpc.php on line 1444
Call Stack
# Time Memory Function Location
1 0.0033 368824 {main}( ) ..\sendmany.php:0
2 0.0708 2095928 BitcoinClient->sendmany( ) ..\sendmany.php:19
3 0.0709 2096048 BitcoinClient->query( ) ..\bitcoin.php:750
4 0.0710 2098736 xmlrpc_client->send( ) ..\bitcoin.php:378
5 0.0710 2098768 xmlrpc_client->sendPayloadHTTP10( ) ..\xmlrpc.php:1223
6 0.0710 2098768 jsonrpcmsg->createPayload( ) ..\xmlrpc.php:1244
7 0.0712 2099040 serialize_jsonrpcval( ) ..\jsonrpc.php:953
8 0.0717 2099712 serialize_jsonrpcval( ) ..\jsonrpc.php:1498
9 0.0719 2100056 each ( ) ..\jsonrpc.php:1444

( ! ) Notice: Undefined offset: 1 in C:\wamp\www\includes\jsonrpc.php on line 1498
Call Stack
# Time Memory Function Location
1 0.0033 368824 {main}( ) ..\sendmany.php:0
2 0.0708 2095928 BitcoinClient->sendmany( ) ..\sendmany.php:19
3 0.0709 2096048 BitcoinClient->query( ) ..\bitcoin.php:750
4 0.0710 2098736 xmlrpc_client->send( ) ..\bitcoin.php:378
5 0.0710 2098768 xmlrpc_client->sendPayloadHTTP10( ) ..\xmlrpc.php:1223
6 0.0710 2098768 jsonrpcmsg->createPayload( ) ..\xmlrpc.php:1244
7 0.0712 2099040 serialize_jsonrpcval( ) ..\jsonrpc.php:953

( ! ) Warning: reset() expects parameter 1 to be array, null given in C:\wamp\www\includes\jsonrpc.php on line 1443
Call Stack
# Time Memory Function Location
1 0.0033 368824 {main}( ) ..\sendmany.php:0
2 0.0708 2095928 BitcoinClient->sendmany( ) ..\sendmany.php:19
3 0.0709 2096048 BitcoinClient->query( ) ..\bitcoin.php:750
4 0.0710 2098736 xmlrpc_client->send( ) ..\bitcoin.php:378
5 0.0710 2098768 xmlrpc_client->sendPayloadHTTP10( ) ..\xmlrpc.php:1223
6 0.0710 2098768 jsonrpcmsg->createPayload( ) ..\xmlrpc.php:1244
7 0.0712 2099040 serialize_jsonrpcval( ) ..\jsonrpc.php:953
8 0.0721 2099888 serialize_jsonrpcval( ) ..\jsonrpc.php:1498
9 0.0722 2100144 reset ( ) ..\jsonrpc.php:1443

( ! ) Warning: Variable passed to each() is not an array or object in C:\wamp\www\includes\jsonrpc.php on line 1444
Call Stack
# Time Memory Function Location
1 0.0033 368824 {main}( ) ..\sendmany.php:0
2 0.0708 2095928 BitcoinClient->sendmany( ) ..\sendmany.php:19
3 0.0709 2096048 BitcoinClient->query( ) ..\bitcoin.php:750
4 0.0710 2098736 xmlrpc_client->send( ) ..\bitcoin.php:378
5 0.0710 2098768 xmlrpc_client->sendPayloadHTTP10( ) ..\xmlrpc.php:1223
6 0.0710 2098768 jsonrpcmsg->createPayload( ) ..\xmlrpc.php:1244
7 0.0712 2099040 serialize_jsonrpcval( ) ..\jsonrpc.php:953
8 0.0721 2099888 serialize_jsonrpcval( ) ..\jsonrpc.php:1498
9 0.0723 2100144 each ( ) ..\jsonrpc.php:1444
Caught exception: Didn't receive 200 OK from remote server. (HTTP/1.1 500 Internal Server Error)

Add this code to this line. https://github.com/mikegogulski/bitcoin-php/blob/5d425e1de01b2e6b0e08e897a39c5f973ea7ce3e/src/includes/jsonrpc.inc#L1491
Remember ADD not replace.

Code:
if (array_keys($val) !== range(0, count($val) - 1)) {
foreach($val as $key2 => $val2) {
$rs .= ',"'.json_encode_entities($key2, null, $charset_encoding).'":';
$rs .= serialize_jsonrpcval($val2, $charset_encoding);
}
$rs = '{' . substr($rs, 1) . '}';
break;
}


I have not received any coins yet. What address did you send to?
164  Economy / Goods / Re: Google+ invites 0.2 Bitcoin on: June 30, 2011, 06:17:50 PM
Im selling for 0.1BTC
165  Economy / Marketplace / Re: Show your firstbits - get 2 bitcents on: June 30, 2011, 06:15:37 PM
added to my signature
166  Bitcoin / Project Development / Re: [1 BTC BOUNTY] A way to use sendmany on: June 30, 2011, 05:49:06 PM
Add this method in BitcoinClient class, I haven't tested but it should be like this.

Code:
  /**
   * Returns Transaction id (txid)
   *
   * @param string $fromAccount Account to send from
   * @param array $sendTo Key=address Value=amount
   * @param integer $minconf
   * @param string $comment
   * @return string Hexadecimal transaction ID on success.
   * @throws BitcoinClientException
   * @since 0.3.21
   * @author codler<github>
   */
  public function sendmany($fromAccount, $sendTo, $minconf = 1, $comment=NULL) {
    if (!$fromAccount || empty($fromAccount))
      throw new BitcoinClientException("sendmany requires an account");
    if (!is_numeric($minconf) || $minconf < 0)
      throw new BitcoinClientException('sendmany requires a numeric minconf >= 0');
 
    if (!$comment)
      return $this->query("sendmany", $fromAccount, $sendTo, $minconf);
    return $this->query("sendmany", $fromAccount, $sendTo, $minconf, $comment);
  }
167  Bitcoin / Project Development / Re: [1 BTC BOUNTY] A way to use sendmany on: June 30, 2011, 04:02:29 PM
Thanks jav.  I can't give that a try right at the moment (will have to wait about 12 hours before I get home and can try it), but hopefully that will work.  If it does, I'll send you your 1 BTC.

Codler, I wish, but there is no sendmany function built in to bitcoin-php.  The project was abandoned a couple of months back because the dev didn't have time to update it, and that was before sendmany was built in as an rpc command.

Unless, you have some php files I don't have...  in which case, let me know where you got them!

I don't know what bitcoin-php is. Could you link bitcoin-php? Maybe I can implement it.
168  Bitcoin / Bitcoin Discussion / Re: 0.1BTC for a Google+ Invite. I'll be here for an hour on: June 30, 2011, 01:47:58 PM
Selling google plus invites for 0.1BTC

send to 19H9hk9LgALN41msp67LYysLLyYN23q7Y4
and PM me your email
169  Other / Beginners & Help / Re: WTB Google+ invite on: June 30, 2011, 01:43:39 PM
Selling google plus invites for 0.1BTC

send to 19H9hk9LgALN41msp67LYysLLyYN23q7Y4
and PM me your email
170  Economy / Invites & Accounts / Re: WTB Google+ invite on: June 30, 2011, 01:41:35 PM
Selling google plus invites for 0.1BTC

send to 19H9hk9LgALN41msp67LYysLLyYN23q7Y4
and PM me your email
171  Economy / Invites & Accounts / WTS google+ invites for 0.1BTC on: June 30, 2011, 01:36:21 PM
Selling google plus invites for 0.1BTC

send to 19H9hk9LgALN41msp67LYysLLyYN23q7Y4
and PM me your email, you need to have a google profile.
172  Bitcoin / Project Development / Re: [1 BTC BOUNTY] A way to use sendmany on: June 30, 2011, 12:27:18 PM
Isn't it just do like this?

Code:
require_once 'jsonRPCClient.php';
$bitcoin = new jsonRPCClient('http://user:password@127.0.0.1:8332/');
$fromAccount = "";
// {address:amount,...}
$sendTo = array(
  '1NRo5XtmfDWfwiN2fY9A7kj9rs1rx3jJok' => 1,
  '19u9uMbEdCRTyrLszCEiJCAzNJURUTaS4T' => 1,
);

echo "<pre>\n";
echo "txid: ".$bitcoin->sendmany($fromAccount, $sendTo)."\n";
echo "</pre>";
173  Other / Beginners & Help / Re: WTB Google+ invite on: June 29, 2011, 12:55:28 PM
https://plus.google.com/
174  Economy / Marketplace / Re: WTB -{4 BTC} asp.net Web Developer + CSS for small website (4 BTC) on: June 29, 2011, 12:34:07 PM
I'll bid 20BTC for CSS
175  Economy / Services / Re: Looking for experienced PHP/Bitcoin web programmer on: June 27, 2011, 09:03:33 PM
I might be interested in this. Could you tell some more details?

https://github.com/codler says the most of my experience Smiley
176  Other / Beginners & Help / Re: What are some websites where I can earn bitcoins? on: June 27, 2011, 05:23:11 PM
You can get fee bitcoins from the following sites :

https://freebitcoins.appspot.com/ (free 0.001 BTC or something atm)

http://www.freebitcoins.org/1771  (you have to complete offers to get rewarded, or just refer friends, not every country is supported atm though - this is a ref link, you don't have to sue it)

occasionally you'll see contests here on the forum, or generous donations by people to get some starter coins Smiley

where do the bitcoins come from freebitcoins?
177  Bitcoin / Bitcoin Discussion / Re: Sending BTC - Priority Protocol on: June 27, 2011, 04:48:41 PM
You can read more at wiki
https://en.bitcoin.it/wiki/Transaction_fee#Technical_info

Quote
priority = sum(input_value_in_base_units * input_age)/size_in_bytes
178  Economy / Marketplace / Re: FREE bitcoins from payb.tc - ROUND 2! (CLOSED) on: June 27, 2011, 04:26:22 PM
THIS OFFER IS NOW CLOSED.

(but feel free to keep making free short links Cheesy)

An ability to edit your shortlink to another address would be a very welcomed feature.

thanks for the suggestion. that would require members to remember a password, and possibly input an email address for password reset, making the whole website a whole lot more complicated. it was designed just to be simple input address+username and you're done Smiley

if you really need to change your address, send me a PM here and i'll do it manually on a case-by-case basis... or just think up a new username that you like and create a new short link.


If you change, I suggest it that it will say on the page a date and that it have changed, in case it was someone else who wanted to change so the creator knows.
179  Other / Beginners & Help / Re: Give away/request free bitcoins here! on: June 25, 2011, 08:32:23 AM
1NRo5XtmfDWfwiN2fY9A7kj9rs1rx3jJok

Thanks
180  Local / Other languages/locations / Re: Sverige on: June 23, 2011, 02:01:22 PM
Det finns också nordcoin…  Cool


Den e ju inte på svenska Tongue
Pages: « 1 2 3 4 5 6 7 8 [9] 10 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!