mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 01:02:05 -07:00
24 lines
531 B
Bash
24 lines
531 B
Bash
#!/bin/bash
|
|||
|
|
|
||
|
|
# Full node
|
||
|
|
export RPC_BASEURL=http://<full node ip>:8332/
|
||
|
|
export RPC_USERNAME=<RPC username>
|
||
|
|
export RPC_PASSWORD=<RPC password>
|
||
|
|
export NETWORK=mainnet
|
||
|
|
|
||
|
|
# SLPDB
|
||
|
|
export SLPDB_URL=http://<SLPDB IP>:12300/
|
||
|
|
|
||
|
|
# Blockbook
|
||
|
|
export BLOCKBOOK_URL=https://<Blockbook IP>:9131/
|
||
|
|
# Allow node.js to make network calls to https using self-signed certificate.
|
||
|
|
export NODE_TLS_REJECT_UNAUTHORIZED=0
|
||
|
|
|
||
|
|
# Mainnet Fulcrum / ElectrumX
|
||
|
|
export FULCRUM_URL=192.168.0.6
|
||
|
|
export FULCRUM_PORT=50002
|
||
|
|
|
||
|
|
export TOKENSECRET=somelongpassword
|
||
|
|
|
||
|
|
npm start
|