Broadcast bitcoin transactions to miners
- mattercloud
- matterpool
- mempool
- taal
- whatsonchain
npm install bsv-pay
const BsvPay = require('bsv-pay')
const pay = new BsvPay({
fetchFunc: require('node-fetch'), // Node.js
// fetchFunc: fetch, // Browser
mattercloud: {
api_key: ''
},
mempool: {
token: ''
},
// whatsonchain: false // To disable specific service
})
const { txid } = await pay.broadcast({ tx, verbose: false })
const { valid } = await pay.status({ txid, verbose: true })
pay.feePerKb()
npm run test