varBlockchain=require('cb-blockr')varblockchain=newBlockchain('testnet')// helper functionfunctionprintTxInfo(err,transactions){if(err)returnconsole.error(err.stack)console.log(transactions)}// get transactions of an addressblockchain.addresses.transactions('mijTkG8nYpN57CZNPqmGUZamqyspoxtxd4',0,printTxInfo)// get transactions of multiple addressesblockchain.addresses.transactions(['mijTkG8nYpN57CZNPqmGUZamqyspoxtxd4','mxzhFsPcF8ujAJ7CxLtvxLLoZqJtkGD5e4'],0,printTxInfo)// get transactionsblockchain.transactions.get(['d37d8d34bb0a5e309fc365da1d860d2fc13131f3d8955dcaec89bf502e58f23b','43de8af6b31f996df522fc3489c4474fb918135a15ff4dbc04f551b4e79e2683'],printTxInfo)// get unspentsblockchain.addresses.unspents('mijTkG8nYpN57CZNPqmGUZamqyspoxtxd4',function(err,unspents){console.log(unspents)})