Bitcoin Forum
May 06, 2024, 07:02:23 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sugestao para opçoes de pagamento em uma faucet  (Read 696 times)
etsoberano (OP)
Sr. Member
****
Offline Offline

Activity: 351
Merit: 250



View Profile WWW
August 13, 2012, 07:40:16 PM
 #1

Boas a todos, gostaria de pedir opinião em relação ao melhor método de pagamento em uma faucete (estou a criar uma para os falantes de língua portuguesa).

Eu no momento já tenho uma maneira de guardar os adereços num ficheiro .txt, em php, mas ainda não sei como vou pagar automaticamente com um simples abrir de uma pagina em php, já estive a experimentar com o bitcoind e com jsonphp usando o comando sendmany para poupar nas fees, mas não consigo arranjar maneira de importar os adereços do ficheiro ( ja utilizei fopen, file(), etc.) mas da sempre erro em como não consigo conectar.

 Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://xxxx@xxxxx:8332/' in /home/xxxxxxx/sites/www.peixoto.tk/public_html/jsonRPCClient.php:139 Stack trace: #0 /home/xxxxxx/sites/www.peixoto.tk/public_html/test.php(16): jsonRPCClient->__call('sendmany', Array) #1 /home/xxxxxxx/sites/www.peixoto.tk/public_html/test.php(16): jsonRPCClient->sendmany('', Array) #2 {main} thrown in /home/xxxxxx/sites/www.peixoto.tk/public_html/jsonRPCClient.php on line 139

O codigo que uso é este (sem o fopen etc etc etc)

<?php

  require_once 'jsonRPCClient.php';
  // Replace with the username and password you set in bitcoin.conf earlier
  $bitcoin = new jsonRPCClient('http://xxx:xxx@xxxxx:8332/');
  print_r($bitcoin->sendmany("etsoberano",array($address)));
 
  ?>


se meter os adereços em
$address = "n1AM3kTG9a5mGJXJRUunCy4kaoasEKiECf"=>1,"mpTaha2FKcM4u7YmNG1XjiTZXW8ywynksy"=>1,"mkTgLRkRw97tUaQqiefRos3BcG8rZsEs7w"=>1,

Funciona mas a retirar directamente do ficheiro não funciona (os adereços ja sao guardados daquela maneira "adereço"=>1,) aparece aquele erro acima.
Alguém me podia ajudar?

฿itcoin: 1hackzqroVrD5pQCeXThfCZWB9zX7jUPJ
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!