Chainfeed Firehose API

public realtime firehose API for Bitcoin Cash OP_RETURN transactions

Install

Browser

<script src='https://unpkg.com/chainfeed'></script>

Node.js

1. Install via NPM
npm install chainfeed
2. Require
const chainfeed = require('chainfeed')

Usage


  // Fetch Recent 3 confirmed blocks
  // The callback returns with the result.
  chainfeed.recent(3, function(res) {
    console.log("recent 3 items = ", res)
  })

  // Fetch blocks from 'start' to 'end'
  // The callback returns with the result.
  var start = 531279;
  var end = 531283;
  chainfeed.range(start, end, function(res) {
    console.log("blocks from ", start, " to ", end, " = ", res)
  })

  // Listen to Realtime Feed.
  // The callback gets called whenever there's a new transaction in the mempool.
  chainfeed.listen(function(res) {
    console.log("New transaction found in mempool! = ", res)
  })
    

And that's it! No API key, No authentication. It's a completely open public utility.

Q&A

Chat on Discord

Demo 1

Check out Chainfeed App

Demo 2

"View Source" to find out how this app works

Listening to mempool
Confirmed blocks
More