Bitcoin sendfrom does not process transaction

0 votes

I have very strange problem with sendfrom. To process I am using dynamic vales from form received with $_POST.

$myaccount = trim($_POST['myaccount']);
$to_wallet = trim($_POST['to_wallet']);
$wammount = trim($_POST['wammount']);

I can echo them and I can clearly see all the data passed from form

Now I am inserting them to

$message = ($bitcoin->sendfrom($myaccount, $to_wallet, $wammount));

What I discovered that all the $myaccount, $to_wallet are correctly passed but $wammount causing problem and code is not executed. I am inserting in form 0.0001 inside the field "wammount" however once this is hard coded

$myaccount = trim($_POST['myaccount']);
$to_wallet = trim($_POST['to_wallet']);
$wammount = 0.0001;

and running command below everything run well and transaction is processed. 

$message = ($bitcoin->sendfrom($myaccount, $to_wallet, $wammount));
Sep 3, 2018 in Blockchain by slayer
• 29,370 points

retagged Nov 22, 2018 by Kalgi 600 views

1 answer to this question.

0 votes

Try this;

$wammount = floatval(trim($_POST['wammount']));
answered Sep 3, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
2 answers

Why does not India consider Bitcoin as a legal tender?

to be specific there are few logical ...READ MORE

answered Jul 3, 2018 in Blockchain by Priyaj
• 58,020 points
853 views
0 votes
1 answer

Is it possible to claim Bitcoin Cash from an exchange that does not support it?

You can't claim BCH without knowing private ...READ MORE

answered Jul 17, 2018 in Blockchain by aryya
• 7,460 points
740 views
0 votes
1 answer

Intl.NumberFormat() does not show the Bitcoin Ƀ Symbol

According to bitcoin.it (https://en.bitcoin.it/wiki/Bitcoin_symbol), The ISO 4217 currency code for ...READ MORE

answered Aug 27, 2018 in Blockchain by slayer
• 29,370 points
2,414 views
0 votes
1 answer

Blockchair - dump files does not contain decimal bitcoin values

The result in the dump file is ...READ MORE

answered Mar 31, 2022 in Blockchain by Rahul
• 9,680 points
682 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,428 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,923 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
1 answer

How to see bitcoin transaction info?

You can view foreign transactions using bitcoind. Set txindex=1 in ...READ MORE

answered Aug 17, 2018 in Blockchain by digger
• 26,740 points
2,109 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP