freddiecoleman / chia-client

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

这工具怎么用? #19

Open CrazyAz10 opened 3 years ago

CrazyAz10 commented 3 years ago

不知道怎么使用这个工具 windows和Ubuntu上node 环境跑都会报这个错 image

jimkoen commented 3 years ago

很可能,你需要将协议变量从 "http "改为 "https"。

const fullNode = new FullNode({
    protocol: 'http' | 'https', // <-- 改为 'https'
    hostname: 'localhost',
    port: 8555
});