Get Bitcoin Cash & Bitcoin SV Blocks and Transactions
const Web3Data = require("web3data-js")
const w3d = new Web3Data('YOUR_API_KEY')
const latestBsvBlock = await w3d.bsv.block.getBlock('latest')
const latestBsvBlockTxns = await w3d.bsv.block.getTransactions(latestBsvBlock.number, {includePrice: true})
const latestBchBlock = await w3d.bch.block.getBlock('latest')
const latestBchBlockTxns = await w3d.bch.block.getTransactions(latestBchBlock.number, {includePrice: true})
no comments