Bitcoin Forum
June 21, 2024, 04:31:51 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / BitcoinJ / Example listen transactions with bitcoinj on: November 26, 2014, 11:41:24 AM
Hello, i made a little example using bitcoinj, the app listen all the transactions coming to local peer (bitcoind full node) and then showing in a web app using web socket.

Source code available here: https://github.com/wwrrss/bitran
Live example running on: http://104.131.127.80:8080/bitran/
2  Bitcoin / Development & Technical Discussion / Re: As a developer, what's the best way to accept BTC without using third-parties on: November 25, 2014, 11:27:21 AM
if you dont want to trust to anyone, you can have a full node and database to handle your payment system, the bitcoin core api have all you need, https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list, getnewaddress, getreceivedbyaddress, listreceivedbyaddress, listsinceblock etc
3  Bitcoin / Development & Technical Discussion / Little Bitcoinj example - Fetch last transactions in the network on: November 24, 2014, 04:45:32 PM
Hello Guys,

I made a little example using Biitcoinj to fetch the last transactions in the Bitcoin netowrk in real time. Just like the last transactions in Blockchain.info, if anyone is interested the code is on github  https://github.com/wwrrss/bitran, live example runnig on http://104.131.127.80:8080/bitran/

4  Bitcoin / Development & Technical Discussion / wallet passphrase caracters scape on: March 01, 2014, 06:24:32 PM
Hi i encrypt my wallet but now i canīt unloock the wallet, i guess is something bad with caracters scape here is my shell story

Code:
4 12:52:28 PM BRT : ./bitcoind walletpassphrasechange["a","b"]\n
  208  Thu 20 Feb 2014 12:52:35 PM BRT : ./bitcoind walletpassphrasechange["a","b"]
  209  Thu 20 Feb 2014 12:52:48 PM BRT : ./bitcoind walletpassphrasechange ["a","b"]
  210  Thu 20 Feb 2014 12:52:54 PM BRT : ./bitcoind walletpassphrasechange ["a","b"]\n
  211  Thu 20 Feb 2014 12:53:23 PM BRT : ./bitcoind walletpassphrasechange ["a"] ["b"]\n
  212  Thu 20 Feb 2014 12:55:12 PM BRT : ./bitcoind walletpassphrasechange ["a"] ["c"]\n
  213  Thu 20 Feb 2014 12:55:21 PM BRT : ./bitcoind walletpassphrasechange ["b"] ["c"]\n
  214  Thu 20 Feb 2014 12:55:35 PM BRT : ./bitcoind walletpassphrasechange ["a"] ["c"]\n
  214  Thu 20 Feb 2014 12:55:35 PM BRT : ./bitcoind walletpassphrasechange ["a"] [".%q!0,q696324/98j11233"]\n



i try several times all the posibilites with errors.

When i try

Code:
 ./bitcoind walletpassphrasechange [".%q!0,q696324/98j11233"] ["a"]\n

i get -bash: !0: event not found

Please help
5  Bitcoin / Development & Technical Discussion / Re: bitcoind json-rpc with Java on: February 28, 2014, 03:32:44 PM
Hi, i would recommend you to use HttpClient to interact with bitcoind.
Example

Code:
 CloseableHttpClient cliente = HttpClients.createDefault();
            HttpPost httpPost = new HttpPost(urlCnx);
            String comando = "{\"method\":\"getbalance\"}";
            StringEntity entidad = new StringEntity(comando);
            httpPost.setEntity(entidad);
            HttpResponse respuesta = cliente.execute(httpPost);

and then read the response....
6  Bitcoin / Development & Technical Discussion / Re: bitcoind sendtoaddress response delay on: February 17, 2014, 04:31:58 PM
Hi i find a solution, i change HttpClient to CloseableHttpClient and after each sendtoaddres i close the conection, i try several times and now is working fine.  Smiley
7  Bitcoin / Development & Technical Discussion / bitcoind sendtoaddress response delay on: February 14, 2014, 06:24:05 PM
Hi,
I am developing a web application and using bitcoind to accept and pay with bitcoin, i have one page to create new address on demand for users and another page where user can  withdraw bitcoins.

The problem is with the sentoaddress rpc command, i have a queue of withdrawals, i iterate thw queue and call the rpc command sendtoaddress but after 2 or 3 commands the bitcoind frezze, i'm using java (spring mvc) and to connect to bitcoind i'm using apache httpclient.

Code:

for (Retiro retiro : retiros) {
          HttpClient httpClient = HttpClients.createDefault();
          HttpPost httpPost = new HttpPost(urlCnx);
          String enviar = "{\"method\": \"sendtoaddress\",\"params\": [\"" + retiro.getDireccion() + "\"," + retiro.getMonto() + "],\"id\":\"0\"}";
                        StringEntity entidadEnvio = new StringEntity(enviar);
                        httpPost = new HttpPost(urlCnx);
                        httpPost.setEntity(entidadEnvio);
                        HttpResponse respuestaEnviar = httpClient.execute(httpPost);
                        Object objeto = gson.fromJson(getReader(respuestaEnviar.getEntity().getContent()), Object.class);
}
Please any suggestions
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!