1
 curl --user ryunishida:password --data-binary '{"jsonrpc": "1.0", 
 "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-
 type: 
  text/plain;' http://127.0.0.1:18332/ -w '%{http_code}\n'

bitcoin/bitcoin.conf below

 rpcuser=ryunishida
 rpcpassword=password

 HOST=localhost
 server=1
 txindex=1
 rpcport=18332
 testnet=3

then i get 401

2
  • You mean .bitcoin/bitcoin.conf, right?
    – Nick ODell
    Aug 18, 2017 at 18:55
  • Yes I meant that
    – 西田龍
    Aug 19, 2017 at 6:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.