We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de50f90 commit 92c4670Copy full SHA for 92c4670
BDKSwiftExampleWallet/View Model/WalletViewModel.swift
@@ -117,6 +117,12 @@ class WalletViewModel {
117
) { [weak self] notification in
118
if let height = notification.userInfo?["height"] as? UInt32 {
119
self?.currentBlockHeight = height
120
+ // Auto-refresh wallet data when Kyoto receives new blocks
121
+ self?.getBalance()
122
+ self?.getTransactions()
123
+ Task {
124
+ await self?.getPrices()
125
+ }
126
}
127
128
0 commit comments