bsv-pay
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

bsv-pay

NPM Package

Broadcast bitcoin transactions to miners

Current supported services:

  • taal
  • whatsonchain
  • gorillapool

Use

npm install bsv-pay

const BsvPay = require("bsv-pay")

const pay = new BsvPay({
  DEBUG: true
  plugins: []
  pluginOptions: {
    // whatsonchain: false // To disable specific service
    // taal: false,
    // gorillapool: false,
  },
})
const { success, report } = await pay.broadcast(txHex)
const { success, report } = await pay.status(txid)

pay.feePerKb()

Tests

npm run test

Package Sidebar

Install

npm i bsv-pay

Weekly Downloads

14

Version

0.1.1

License

MIT

Unpacked Size

55.9 kB

Total Files

53

Last publish

Collaborators

  • kevinejohn