0

How to get testnet credentials to use bit-coin core functions in Node.js.

{
    "Bitcoin": {
      "testnet": {
        "username": "name",
        "password": "sdaddf",
        "network": "regtest",
        "port": 18332 
      },
      "mainnet": {
        "username": "name",
        "password": "sadasd",
        "network": "mainnet",
        "port": 8332
      }
    }
}
0

You set them in your bitcoin.conf file and use the network specific configuration sections. So you can add to your bitcoin.conf file:

[test]
rpcuser=name
rpcpassword=sdaddf

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.