Giter Club home page Giter Club logo

bmap-indexer's Introduction

bmap-api

This API is hosted publicly at https://b.map.sv

It is a Bitcoin transaction indexer and API for building 'BMAP' Bitcoin apps. It uses junglebus to crawl for transactions and transforms them with bmapjs. It runs two processes:

Crawler

A crawler and indexer that saves transaction data into a MongoDB database.

API

API Was moved to seperate repo rohenaz/bmap-api

Install

Prerequisites

Docker & Docker-Compose

Run Locally

Install dependencies

yarn

Start the app (make sure your env vars are set first)

yarn start

Run in docker

Build the image

docker build -t bmap-api.

Start the app `bash docker-compose up


### Configuration

`config.js` hold config values.

Set the `from` value to the block to begin indexing.

#### Install MongoDB

To run locally you will need mongodb installed.

See their [installation guide](https://docs.mongodb.com/manual/installation)

# Config

Set the following environmental variables:

- `MONGO_URL` A connection string to your mongo database. ex: mongodb://127.0.0.1:27017/bmap when running locally, or mongodb://mongo:27017/bmap from within a container.

# Run

```bash
node index

More Examples

MAP.app = TonicPow

BITPIC.paymail = [email protected]

BITKEY.paymail = [email protected]

With BitQuery you can search in all sorts of ways.

Records within the last 24 hours:

  1. Set a timestamp in the expected format.
let timestamp = Math.floor(new Date().getTime() / 1000 - 86400)
  1. Search for records since that timestamp:
{
  "v": 3,
  "q": {
    "blk.t": { "$gt": <timestamp> }
  }
}

BMAPjs

This API returns data in BMAP format which is a derivative of BOB: BMAPjs

bmapjs.com

bmap-indexer's People

Contributors

rohenaz avatar icellan avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.