gpt4 book ai didi

ios - "Query response is nil without errors"

转载 作者:行者123 更新时间:2023-12-02 17:59:15 25 4
gpt4 key购买 nike

我试图在我的 iOS 应用程序中使用 Pocket AION 插件获取我的 AION 余额,但我得到“查询响应为零,没有错误”。我的代码是

do {
try? PocketAion.eth.getBalance(address: publicKey, subnetwork: "32", blockTag: BlockTag.init(block: .LATEST), handler: { (result, error) in
if error != nil {
print(error!)
return
}
let conv = Double.init(result!) / Double(10000000000000000)

DispatchQueue.main.async {
self.showCount.text = conv.description
}
})
} catch {
print("error, no count")
}

最佳答案

之所以显示为“Nil”,是因为网络节点正在同步。代码现在可以正常工作了!

关于ios - "Query response is nil without errors",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54659017/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com