Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: PandaMiner on July 05, 2011, 12:49:02 PM



Title: [FOUND] List of Command-line arguments for Bitcoin.exe
Post by: PandaMiner on July 05, 2011, 12:49:02 PM
I've tried searching this forum but it only returns a command here, and a command there, etc.  I can't find anywhere a place that has them all in one place.

I've even tried running "bitcoin.exe /help" and "bitcoin.exe -help" and "/?" to no avail.  I don't know how to read the open source code either.

Can someone point me in the right direction, or provide all the commands in a "/help" style? Thanks.


Dave


EDIT: These have been found in the wiki. See my last post.


Title: Re: [Where to find?] List of "prompt" commands for Bitcoin.exe
Post by: Pieter Wuille on July 05, 2011, 12:57:11 PM
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list


Title: Re: [FOUND] List of "prompt" commands for Bitcoin.exe
Post by: PandaMiner on July 05, 2011, 12:58:59 PM
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

Thanks. Sent ya a bitcent.


EDIT:  This is not what I needed.  For example, what is the command to have bitcoin start up in one of your networked computers, but look to another computer for the updates/block chain? (The other computer's ip is where the port has been forwarded to)


Title: Re: [Where do i find] List of "prompt" commands for Bitcoin.exe
Post by: theymos on July 05, 2011, 01:13:39 PM
bitcoin -?


Title: Re: [Where do i find] List of "prompt" commands for Bitcoin.exe
Post by: PandaMiner on July 05, 2011, 01:35:53 PM
bitcoin -?

This doesn't work.  It either starts the client normally, or errors out and says there's no password set in the (non existant) config file.

But, i was able to find something on the wiki by accident: a default bitcoin.conf (https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File)ig file, with all defaults set in value pairs so that you can see what's going on.

But above that sat this, which didn't work for me "-?" before setting up my config file.

Code:
 -conf=<file>       Specify configuration file (default: bitcoin.conf)
 -gen               Generate coins
 -gen=0             Don't generate coins
 -min               Start minimized
 -datadir=<dir>     Specify data directory
 -proxy=<ip:port>   Connect through socks4 proxy
 -addnode=<ip>      Add a node to connect to
 -connect=<ip>      Connect only to the specified node
 -nolisten          Don't accept connections from outside
 -noupnp            Don't attempt to use UPnP to map the listening port
 -upnp              Attempt to use UPnP to map the listening port
 -paytxfee=<amt>    Fee per KB added to transactions you send
 -server            Accept command line and JSON-RPC commands
 -daemon            Run in the background as a daemon and accept commands
 -testnet           Use the test network
 -port=<port>       Connect to the Network from <port> (default: 8333; 18333 for testnet)
 -rpcuser=<user>    Username for JSON-RPC connections
 -rpcpassword=<pw>  Password for JSON-RPC connections
 -rpcport=<port>    Listen for JSON-RPC connections on <port> (default: 8332)
 -rpcallowip=<ip>   Allow JSON-RPC connections from specified IP address
 -rpcconnect=<ip>   Send commands to node running on <ip> (default: 127.0.0.1)
 -keypool=<n>       Set key pool size to <n> (default: 100)
 -rescan            Rescan the block chain for missing wallet transactions
 -rpcssl            Use OpenSSL (https) for JSON-RPC connections
 -?                 This help message


Title: Re: [FOUND] List of Command-line arguments for Bitcoin.exe
Post by: Pieter Wuille on July 05, 2011, 02:33:54 PM
You want -addnode


Title: Re: [FOUND] List of Command-line arguments for Bitcoin.exe
Post by: PandaMiner on July 05, 2011, 06:55:45 PM
You want -addnode


Nope, they are all behind the same router, so I went with -connect as per the wiki.