0.1.4 • Published 2 years ago

bridgecast v0.1.4

Weekly downloads
-
License
Open BSV License
Repository
github
Last release
2 years ago

bridgecast

Notify Bridgeport bridges about new transactions

The code is hosted on GitHub and the package is available through NPM.

Installation

npm i bridgecast

Example Usage

const bridgecast = require('bridgecast')

const acceptingBridges = await bridgecast({
  tx: { // An Everett-stype Transaction Envelope
    rawTx: '...',
    inputs: {
      '...': '...'
    },
    mapiResponses: [{'...': '...'}]
  },
  bridges: [
    '...', // Bridge ID 1
    '...' // Bridge ID 2
  ]
})

// acceptingBridges is now an array of the bridge IDs that have processed the transaction
console.log(acceptingBridges)

API

Table of Contents

bridgecast

Notify Bridgeport bridges about new transactions

Parameters

Returns Promise[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> Bridge IDs that accepted the transaction

License

The license for the code in this repository is the Open BSV License.

0.1.2

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago