我正在嘗試使用Go(不在GAE上)為比特幣調(diào)用HTTP JSON-RPC服務(wù)器,但是出現(xiàn)以下錯誤dial tcp http://user:pass@127.0.0.1:8332: too many colons in address或者dial ip http://user:pass@127.0.0.1:8332: lookup http://user:pass@127.0.0.1:8332: no such host我嘗試了各種網(wǎng)絡(luò)配置,但無濟于事。當(dāng)我在瀏覽器中鍵入地址時,服務(wù)器收到了響應(yīng):{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}對于空電話,這看起來像是正確的響應(yīng)。如何在Go中正確調(diào)用該HTTP JSON-RPC服務(wù)器?
開始-JSON-RPC-“冒號太多”
呼啦一陣風(fēng)
2021-04-26 17:58:15