-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Duddino
committed
Nov 21, 2022
1 parent
dc5e395
commit a755d49
Showing
3 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
RPC_CREDENTIALS=masternode_test:p | ||
ALLOWED_RPCS=help,listmasternodes | ||
RPC_CREDENTIALS=name:password | ||
ALLOWED_RPCS=help,getbalance | ||
PORT=3000 | ||
RPC_PORT=51473 | ||
TESTNET_RPC_PORT=51463 # Remove if you don't want testnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
# PivxNodeController | ||
http server used to control a node remotely | ||
Simple http server used to perform RPC calls to a Bitcoin based node | ||
|
||
# HOW TO RUN | ||
|
||
First, download the dependencies with | ||
```bash | ||
npm i | ||
``` | ||
Then, copy the example environment file with | ||
```bash | ||
cp .env.sample .env | ||
``` | ||
If you are setting up a node for MPW, copy `.env.mpw.sample` instead. | ||
Edit the file by chaning the credentials using the ones you set on your crypto node. | ||
Finally, run the server with | ||
```bash | ||
npm run start | ||
``` |