How to update state of reactjs in realtime from an polkadotjs rpc api?

后端 未结 0 946
无人及你
无人及你 2020-11-28 01:25
  const unsubHeads = await data.rpc.chain.subscribeNewHeads((lastHeader) => {
            console.log(`: last block #${lastHeader.number} has hash ${lastHeader.ha         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题