bch

Brief explanation

Binary: /usr/bin/bitcoind
Configuration file: /etc/bitcoin/bitcoin.conf
Data directory: /var/lib/bitcoind
PID file: /var/run/bitcoind/bitcoind.pid (OpenRC and Upstart) or /var/lib/bitcoind/bitcoind.pid (systemd)
Lock file: /var/lock/subsys/bitcoind (CentOS)

Run node with bitcoind

아래 명령어를 통해 bitcoin node 를 백그라운드에서 실행시킨다.

1
bitcoind -daemon -rpcuser=<user_name> -rpcpassword=<user_password> -rpcport=<port>

additional bitcoind options

Interact with chain with bitcoin-cli

1
2
3
4
5
6
bitcoin-cli getinfo
bitcoin-cli getnetworkinfo # 네트워크 정보 받아옴.
bitcoin-cli getblockchaininfo # 블록체인 정보 받아옴.
bitcoin-cli listtrasactions # 트랜잭션 목록 나열
bitcoin-cli getrawtransaction <transaction_id> true
bitcoin-cli stop # stop bitcoin daemon
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×