diff --git a/Regtest/README.md b/Regtest/README.md index 3e3ccde..3cd4b8e 100644 --- a/Regtest/README.md +++ b/Regtest/README.md @@ -6,6 +6,15 @@ It exposes BTCPay on the host address http://localhost:8080/. It also exposes Bitcoin Core RPC which you can access through port 8081: +To access it, you can use: +On Powershell: + +``` +bitcoin-cli -conf="$pwd/bitcoin.conf" getblockcount +``` + +On Linux: + ``` -bitcoin-cli -regtest -rpcport=8081 -rpcpassword=DwubwWsoo3 -rpcuser=ceiwHEbqWI83 getblockcount +bitcoin-cli -conf="$pwd/bitcoin.conf" getblockcount ``` \ No newline at end of file diff --git a/Regtest/bitcoin.conf b/Regtest/bitcoin.conf new file mode 100644 index 0000000..39371d4 --- /dev/null +++ b/Regtest/bitcoin.conf @@ -0,0 +1,4 @@ +regtest=1 +rpcport=8081 +rpcpassword=DwubwWsoo3 +rpcuser=ceiwHEbqWI83 \ No newline at end of file