Skip to content

Get Bitcoin node's mempool information using cyphernode.

License

Notifications You must be signed in to change notification settings

aitorjs/cypherapp-mempool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypherapp-mempool

Manually

Install

  1. Install server dependencies: npm run server-deps
  2. Install client dependencies: npm run client-deps

Run

  1. Run server: npm run server
  2. Run webclient / webapp: xxxxxx

Using docker

  1. Have cyphernode running with the chain up-to-date
  2. Create .env file in the root of the project as
{
  "cypherApi": "CYPHERAPI-KEY" (*), // https://gatekeeper:2009/v0
  "h64": "H64-KEY",
  "apiId": "APIID-KEY",
  "apiKey": "APIKEY-KEY"
}
  1. Build image: npm run docker-build-image
  2. Exec container: npm run docker-run
  3. Open webapp on http://localhost:3000/mempool and loopback explorer on http://localhost:3000/explorer

Using docker-composer

  1. Have cyphernode running with the chain up-to-date
  2. Create .env file in the root of the project as:
{
  "cypherApi": "CYPHERAPI-KEY" (*), // https://gatekeeper:2009/v0
  "h64": "H64-KEY",
  "apiId": "APIID-KEY",
  "apiKey": "APIKEY-KEY"
}
  1. Build image: npm run docker-build-image
  2. Up docker-compose configuration: npm run docker-compose-up
  3. Open webapp on https://mempool.localhost/mempool and loopback explorer on https://mempool.localhost/explorer

Notes

  • (*) In .env.cypherApi file, use 127.0.0.1 outside docker and gatekeeper inside docker.

  • Cyphernode by default creates this 'subdomain': cyphernode.localhost