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


user48884: 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


95964: <p>How to get testnet credentials to use bit-coin core functions in Node.js.</p>

<pre><code>{
    "Bitcoin": {
      "testnet": {
        "username": "name",
        "password": "sdaddf",
        "network": "regtest",
        "port": 18332 
      },
      "mainnet": {
        "username": "name",
        "password": "sadasd",
        "network": "mainnet",
        "port": 8332
      }
    }
}
</code></pre>
 48884: <p>You set them in your bitcoin.conf file and use the network specific configuration sections. So you can add to your bitcoin.conf file:</p>

<pre><code>[test]
rpcuser=name
rpcpassword=sdaddf
</code></pre>
