Get Bitcoin Cash & Bitcoin SV Blocks and Transactions

node v10.18.0
version: 2.0.0
endpointsharetweet
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})
Loading…

no comments

    sign in to comment