Bitcoin Forum
July 14, 2024, 03:20:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 0.9's bitcoin-cli  (Read 1863 times)
5flags (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100

Professional anarchist


View Profile WWW
March 26, 2014, 10:26:46 AM
 #1

With 0.9, the idea seems to be moving away from using bitcoind as an RPC server, and towards using bitcoin-cli to control the server. Is there any info on how to do this? Will bitcoin-cli become the RPC server? Or do we send and parse JSON over the command line to bitcoin-cli?

I'm not following the thinking here.

http://5fla.gs - @5flags on Twitter
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
March 26, 2014, 10:47:36 AM
 #2

Until now bitcoind was both the client and the server. The plan is to make bitcoind the server only, and bitcoin-cli the client.
5flags (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100

Professional anarchist


View Profile WWW
March 26, 2014, 11:08:42 AM
 #3

Until now bitcoind was both the client and the server. The plan is to make bitcoind the server only, and bitcoin-cli the client.

Hmmm.

I'm currently using bitcoind and talking to it over RPC. What should I be doing now? Do I run both bitcoind AND bitcoin-cli? Sorry if I'm being dense.

http://5fla.gs - @5flags on Twitter
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
March 26, 2014, 12:53:50 PM
 #4

bitcoind runs in the background just like before.

Whenever you need to ask it something via RPC, you do "bitcoin-cli foobar". As soon as you get the response, bitcoin-cli doesn't run anymore, like your daily ls/dir.
5flags (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100

Professional anarchist


View Profile WWW
March 26, 2014, 01:00:30 PM
 #5

bitcoind runs in the background just like before.

Whenever you need to ask it something via RPC, you do "bitcoin-cli foobar". As soon as you get the response, bitcoin-cli doesn't run anymore, like your daily ls/dir.

OK, thanks. Seems like a step backwards to me, but I'll go with it.

http://5fla.gs - @5flags on Twitter
Foxpup
Legendary
*
Offline Offline

Activity: 4424
Merit: 3062


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
March 27, 2014, 01:46:51 AM
 #6

OK, thanks. Seems like a step backwards to me, but I'll go with it.
No, it's a step forward. bitcoind now works like all other servers in that respect. If you're running, say, ftpd as an FTP server, you don't talk to the server by running ftpd <command>, instead you use a separate client program. It really never made any sense in the first place for bitcoind to function as either a server or a client depending on the context.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
March 27, 2014, 10:13:26 AM
 #7

Until now bitcoind was both the client and the server. The plan is to make bitcoind the server only, and bitcoin-cli the client.

Hmmm.

I'm currently using bitcoind and talking to it over RPC. What should I be doing now? Do I run both bitcoind AND bitcoin-cli? Sorry if I'm being dense.

You don't run bitcoin-cli at all. bitcoin-cli is only used over the command line interface hence the name. If you are communicating to bitcoind via http + jsonRPC there is no need to use bitcoin-cli.
bananas
Sr. Member
****
Offline Offline

Activity: 364
Merit: 257


View Profile
April 02, 2014, 11:41:52 PM
 #8

Where is bitcoin-cli? Just downloaded 0.9 and there is no such file.
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
April 03, 2014, 04:01:56 PM
 #9

Where is bitcoin-cli? Just downloaded 0.9 and there is no such file.

Depends on your OS and what you downloaded/installed. In the linux tarball it's in the bin/32 and bin/64 sub-directories.
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!