chia-client icon indicating copy to clipboard operation
chia-client copied to clipboard

call .then on the promise for fullNode

Open technickal1 opened this issue 3 years ago • 0 comments

For using ts-node

Instead of console.log(await blockChainState.blockchain_state.space);

call with .then to prevent Promise { <pending> }

console.log(blockchain)

blockchain.then(function(fullNode) {
   console.log(fullNode)
})

technickal1 avatar Nov 23 '21 20:11 technickal1