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:
A crawler and indexer that saves transaction data into a MongoDB database.
API Was moved to seperate repo rohenaz/bmap-api
Docker & Docker-Compose
Install dependencies
yarn
Start the app (make sure your env vars are set first)
yarn start
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
BITPIC.paymail = [email protected]
BITKEY.paymail = [email protected]
With BitQuery you can search in all sorts of ways.
- Set a timestamp in the expected format.
let timestamp = Math.floor(new Date().getTime() / 1000 - 86400)
- Search for records since that timestamp:
{
"v": 3,
"q": {
"blk.t": { "$gt": <timestamp> }
}
}
This API returns data in BMAP format which is a derivative of BOB: BMAPjs