我试图在我的 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")
}