Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

simpleledger/sockserve

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is Sockserve?

Sockserve is a frontend API for Bitd that provides a streaming output of new transactions. Unlike Bitserve which is a similar frontend API used to fetch historical blockchain data, Sockserve can be used display data as it comes in.

Installation

Prerequisite

For Sockserve to work you first need to go through the install process for bitd, which will continually scan the blockchain for new transactions and blocks which will be streamed live over the Bitsocket (sockserve) API.

Setting up Sockserve

Clone this repository:

git clone https://github.com/fountainhead-cash/sockserve.git && cd sockserve

Install dependencies:

npm install

Configure Sockserve:

cp .env.example .env
$(EDITOR) .env

Start Sockserve

npm start

Running as a daemon

Install PM2 using NPM

npm install pm2 -g

CD to install location and run bitd

pm2 start index.js

About

Debug and watch the stream of transactions over Bitsocket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 55.3%
  • JavaScript 39.7%
  • CSS 5.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.