Bitcoin Forum
December 03, 2022, 05:58:18 AM *
News: Bitcointalk Community Awards
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / createrawtransaction help php on: August 08, 2014, 03:25:17 AM
What am i doing wrong
i have
$json = json_encode($unspent);
    $funds = $calc - '0.0001';
    $sfunds = ('{\"TTBVKPAqc6wvE3UHHYDDnshxyPEu33Zxjf\":'.$funds.'}');
    $crt = $btc->createrawtransaction("$json,$sfunds");
    print_r ($crt);

$json,$sfunds output is


If i type it directly in console it creates the rawtransaction

But when i try from php i get

Array ( [.code] => -1 [message] => createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...} Create a transaction spending given inputs (array of objects containing transaction id and output number), sending to given address(es). Returns hex-encoded raw transaction. Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network. )
2  Alternate cryptocurrencies / Marketplace (Altcoins) / Please delete this thread on: July 14, 2014, 04:46:57 AM
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!