Zcash Account Balance, Blocks, Transactions & RPC

node v10.22.0
version: 1.0.0
endpointsharetweet
const Web3Data = require("web3data-js") const w3d = new Web3Data('YOUR_API_KEY') const balance = await w3d.zec.address.getBalance('t1M5GSbdVpPA1XFkuzi12sJyqGkrEEfGwLJ', { includePrice: true }) const latestBlock = await w3d.zec.block.getBlock('latest') const latestBlockTxns = await w3d.zec.block.getTransactions(latestBlock.number, {includePrice: true}) const bestBlockHash = await w3d.zec.rpc('getbestblockhash')
Loading…

no comments

    sign in to comment