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 2 years ago

technickal1 commented 2 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)
})