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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.