MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / fetchWalletBalace

Function fetchWalletBalace

src/wallet.ts:192–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

walletBalanceMethod · 0.80

Tested by

no test coverage detected