Get Address Balances for 5 Blockchains at once

node v10.18.0
version: 1.0.0
endpointsharetweet
const apiKey = 'YOUR_API_KEY' const Web3Data = require("web3data-js") const w3d = new Web3Data(apiKey) const BtcAddress = '3B1QXUYywcGYJ4TxWDvbtuGfAAL6PnHLLf' const EthAddress = '0x5A0b54d5dc17e0AADC383d2DB43b0A0d3e029c4C' const LtcAddress = 'LMwbA2fKM9CGQMttVT6E4SgQ1qPP31Py3J' const BsvAddress = '17UtXPuj2dQDxdqFf1kJgeb1mR7s7nE2qX' const BchAddress = 'qzzkmd537qgnn5uh2j8eesx9ekt0f27dps8eucexdd' const btcBalance = await w3d.btc.address.getBalance(BtcAddress, {includePrice: true}) const ethBalance = await w3d.eth.address.getBalance(EthAddress, {includePrice: true}) const ltcBalance = await w3d.ltc.address.getBalance(LtcAddress, {includePrice: true}) const bchBalance = await w3d.bch.address.getBalance(BsvAddress, {includePrice: true}) const bsvBalance = await w3d.bsv.address.getBalance(BchAddress, {includePrice: true})
Loading…

no comments

    sign in to comment