4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

CentOS7 QTUM configuration, run

CentOS + QTUM configuration, run

install info

core folder : /data/coin/qtum/src
data folder : /data/coin/qtum

setting (qtum.conf)

if don't exist conf file then make

testnet = 1
rpcuser=test1
rpcpassword=your password
rpcport=15338
rpcallowip=127.0.0.1
rpcallowip=xxx.xxx.xx.x

run deamon

/data/coin/qtum/src/qtumd -datadir=/data/coin/qtum

process check, port check

[root@localhost src]#ps -ef | grep qtumd
[root@localhost src]#netstat -ant | grep 15338

run check

[root@localhost src]#./qtum-cli help
if error : Could not locate RPC credentials. No authentication cookie could be found, and no rpcpassword is set in the configuration file (/root/.qtum/qtum.conf)

if error, then do this

[root@localhost src]#./qtum-cli -rpccookiefile=../rpccookiefile -conf=../qtum.conf -rpcport=15338 -rpcuser=test1 -rpcpassword=yourpassword getbalance help

excute json rpc

[root@localhost src]#curl --user test1:yourpassword --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:15338/
[root@localhost src]# {"result":0.00000000,"error":null,"id":"curltest"}
1 upvotes $0.00

Replies (2)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: