aboboras has asked for the wisdom of the Perl Monks concerning the following question:
The api call above does not work, however if i substitute the variable $btc for hardcoded value it does work fine. I found the same issue in PHP and the problem was passing a string instead of a numerical. Any wisdom? I'm stuck on it.$btc = $data{"amount"}; $btc = substr($btc,0,32); chomp($btc); $btc = sprintf('%.8f', $btc); $call = $api->call('sendfrom', $sender_account, $receiving_address,$bt +c,6);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: JSON / Bitcoind API 500 internal error
by marto (Cardinal) on Mar 04, 2014 at 18:16 UTC | |
by aboboras (Acolyte) on Mar 04, 2014 at 18:40 UTC | |
by runrig (Abbot) on Mar 04, 2014 at 19:03 UTC | |
by aboboras (Acolyte) on Mar 04, 2014 at 20:43 UTC | |
by marto (Cardinal) on Mar 04, 2014 at 20:56 UTC | |
by marto (Cardinal) on Mar 04, 2014 at 19:24 UTC | |
by aboboras (Acolyte) on Mar 04, 2014 at 21:45 UTC | |
|
Re: JSON / Bitcoind API 500 internal error
by tobyink (Canon) on Mar 05, 2014 at 09:40 UTC |