bsv-pay
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