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,170 points

retagged Nov 22, 2018 by Kalgi 30 views

1 answer to this question.

0 votes

Try this;

$wammount = floatval(trim($_POST['wammount']));
answered Sep 3, 2018 by digger
• 26,550 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 2, 2018 in Blockchain by Priyaj
• 56,920 points
73 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 ariaholic
• 7,340 points
48 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,170 points
142 views
+4 votes
4 answers

How does the blockchain verification process work?

First of all, when someone creates a ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 17,020 points
227 views
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
90 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
169 views
0 votes
1 answer
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,550 points
186 views
0 votes
1 answer