()
| 190 | |
| 191 | // Get balance of all accounts |
| 192 | async fetchWalletBalace() { |
| 193 | // Get all scriptHashes in accountCollection |
| 194 | const allScriptHashs: string[] = Object.values(this.accountCollection).map( |
| 195 | (account) => account.mainAddress!.scriptHash |
| 196 | ); |
| 197 | |
| 198 | const balance = await this.urchain.walletBalance(allScriptHashs); |
| 199 | return balance; |
| 200 | } |
| 201 | |
| 202 | // Get UTXOs of all accounts |
| 203 | async fetchAllAccountUtxos(includeUnbondedTokenUtxos = false) { |
nothing calls this directly
no test coverage detected