Bitcoin Forum
October 03, 2025, 08:52:58 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: bitcoind & JSON-RPC PHP error handling problem on: November 29, 2011, 11:41:54 AM
hey, thanks for your reply and the code, and sorry for my late answer...
i will try this code out!

thx!!
2  Other / Beginners & Help / Re: Creative acronyms for Bitcoin on: November 22, 2011, 12:29:03 PM
Beat The Clown Smiley
3  Economy / Speculation / Re: who would pay me to crash the market? on: November 18, 2011, 08:39:11 AM
Itīs a pity that ignore buttons canīt kill people...
4  Bitcoin / Bitcoin Technical Support / Re: bitcoind & JSON-RPC PHP error handling problem on: November 17, 2011, 08:16:57 PM
As I am just at the beginning of developing a small application for me Iīm not "fixed" to Sergioīs library.
Could you or the community suggest me any other json-rpc librarys for php that are robust and give me all possible functions?
5  Bitcoin / Bitcoin Technical Support / Re: bitcoind & JSON-RPC PHP error handling problem on: November 17, 2011, 06:59:06 PM
Hi, just compiled bitcoind with your patch, and getting the following output:

The php code is:

Code:
try {
$test = $bitcoin->sendfrom('test_1', 'mn6zpXzT5ouQBjCXJe8Bbo8JZoxZA3d34y', 25, $minconf=1);
print $test;
} catch (Exception $e) {
    echo 'Exception abgefangen: ',  $e->getMessage(), "\n";

print '<pre>';
print_r($e);
print '</pre>';
}

And thats the output:

Code:
Exception abgefangen: Request error: Array

Exception Object
(
    [message:protected] => Request error: Array
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => D:\xampp\htdocs\dev\bitcoin\jsonRPCClient.php
    [line:protected] => 156
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => D:\xampp\htdocs\dev\bitcoin\test2.php
                    [line] => 28
                    [function] => __call
                    [class] => jsonRPCClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => sendfrom
                            [1] => Array
                                (
                                    [0] => test_1
                                    [1] => mn6zpXzT5ouQBjCXJe8Bbo8JZoxZA3d34y
                                    [2] => 25
                                    [3] => 1
                                )

                        )

                )

            [1] => Array
                (
                    [file] => D:\xampp\htdocs\dev\bitcoin\test2.php
                    [line] => 28
                    [function] => sendfrom
                    [class] => jsonRPCClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => test_1
                            [1] => mn6zpXzT5ouQBjCXJe8Bbo8JZoxZA3d34y
                            [2] => 25
                            [3] => 1
                        )

                )

        )

    [previous:Exception:private] =>
)

I donīt know if it is my fault because I misunderstood something here, but I canīt see any of the expected bitcoind error messages,
in this case it should throw an exception because the balance of the account is lower than the transaction amount.

thx!
6  Bitcoin / Development & Technical Discussion / Re: sendmany andanvatage? on: November 17, 2011, 08:56:28 AM
thx for the advise, seems better with testnet, and there are no "real" fees on it Smiley
7  Bitcoin / Bitcoin Technical Support / Re: bitcoind & JSON-RPC PHP error handling problem on: November 17, 2011, 08:55:37 AM
wow, thanks for the quick fix. I will try to compile tonight, and let you know about it!

thx!!
8  Bitcoin / Development & Technical Discussion / Re: sendmany andanvatage? on: November 16, 2011, 09:52:52 PM
sounds plausible Smiley thank you!
9  Bitcoin / Development & Technical Discussion / Re: sendmany andanvatage? on: November 16, 2011, 09:34:31 PM
ah, thank you!
is there a sample output anywhere what happens, if i call this with rpc, and ie one address is invalid? or if account has an invalid balance after n transactions?
10  Bitcoin / Development & Technical Discussion / sendmany andanvatage? on: November 16, 2011, 09:26:14 PM
Hi there,
could someohne please explain me what exactly is the advantage to use sendmany when sending money?
Could not find anything about it in the documents...

thx!
11  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 16, 2011, 08:00:34 PM
here you are: 1NqkEcycGaK1VVx85D2zm7YGYtYtya5DPw  Grin Grin
12  Bitcoin / Bitcoin Technical Support / bitcoind & JSON-RPC PHP error handling problem on: November 16, 2011, 07:54:03 PM
Hi there,
i use an dedicated bitcoind machine, and want to work with JSON-RPC PHP from Sergio Vaccaro.
Everything works fine, but if there is an error from bitcoind, like not enough balance to make a transaction,
JSON-RPC returns not the bitcoind error message, instead following error comes:

Warning: fopen(http://...@192.168.178.204:8332/) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in D:\xampp\htdocs\dev\bitcoin\jsonRPCClient.php on line 133

Is there a way to get the error message from bitcoind, to work with?
Or do you use another json-rpc library for such things?

thank you!!
13  Other / Beginners & Help / Re: Newbie restrictions on: November 16, 2011, 07:49:38 PM
Hmm.. the restrictions are not good, if a member like me comes with a question,
why should wait for hours and post some random stupid posts?
14  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 16, 2011, 07:47:35 PM
Hey guys, sorry for spamming, now there are 6 Posts and 4 hours and 18 minutes only,
should be enough, or?

thx
15  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 16, 2011, 07:44:35 PM
Q: What do elephants have that no other animal has?
A: Baby elephants.
16  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 16, 2011, 07:42:57 PM
The man: "God, how long is a million years?"
God: "To me, it's about a minute."
The man: "God, how much is a million dollars?"
God: "To me it's a penny."
The man: "God, may I have a penny?"
God: "Wait a minute."
17  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 16, 2011, 07:42:19 PM
Teacher: Maria please point to America on the map.
Maria: This is it.
Teacher: Well done. Now class, who found America?
Class: Maria did.
18  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 16, 2011, 07:40:15 PM
Sorry for spamming you  Grin
19  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 16, 2011, 07:39:52 PM
Hi there Smiley

Hmm.. now ive got a technical question and canīt post in the right board Sad
20  Other / Beginners & Help / Re: I can't post anywhere this is bs. on: November 15, 2011, 09:15:17 PM
how many posts are needed? Smiley
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!