freddiecoleman / chia-client

TypeScript client for Chia RPC interfaces.
https://www.chiaexplorer.com/
MIT License
89 stars 43 forks source link

call .then on the promise for fullNode #35

Open technickal1 opened 3 years ago

technickal1 commented 3 years ago

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)
})