Testnet credentials

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
      }
    }
}

Abhay parihar

Posted 2019-06-05T07:23:00.143

Reputation: 1

Answers

1

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

Andrew Chow

Posted 2019-06-05T07:23:00.143

Reputation: 40 910