
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
bap-junglebus
Advanced tools
BAP transaction indexer for JungleBus
BAP-junglebus is a JungleBus compatible Bitcoin Attestation Protocol indexer. It scans all BAP transactions and processes them into a global BAP state using GorillaPool's JungleBus.
npm install -g bap-junglebus
Set the environment variables. You must at least set a JungleBus subscription.
export BAP_SUBSCRIPTION_ID=""
And optionally overwrite the defaults for the database:
export BAP_MONGO_URL="mongodb://localhost:27017/bap"
Indexing BAP blocks can now be done by running
bap-junglebus
The arguments to the bap-junglebus cli are:
arg | Description |
---|---|
-s <subscription id> | JungleBus subscription ID |
git clone https://github.com/icellan/bap-junglebus.git
BAP-junglebus can run either with settings from a config file (config.json
) or from environment variables.
config.json
{
"subscriptionId": "...",
"mongoUrl": "mongodb://..."
}
environment
export BAP_SUBSCRIPTION_ID="..."
export BAP_MONGO_URL="mongo://..."
To run the indexer:
./start.sh
yarn test
or
yarn testwatch
npm install bap-junglebus
or
yarn add bap-junglebus
Make sure you set the environment variables before running any scripts:
export BAP_SUBSCRIPTION_ID = '<junglebus subscription id>';
export BAP_MONGO_URL = 'mongodb://localhost:27017/bap';
Index all BAP transactions (also from mempool):
import { watchBAPTransactions } from 'bap-junglebus/src/bap';
(async function() {
await watchBAPTransactions();
})();
Make sure babel is set up properly or that es6 is supported by your own package.
FAQs
BAP indexer to MongoDB using JungleBus
The npm package bap-junglebus receives a total of 2 weekly downloads. As such, bap-junglebus popularity was classified as not popular.
We found that bap-junglebus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.