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

Method refresh

src/btc/btc-wallet.ts:261–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259 }
260
261 async refresh() {
262 await this.urchain.refresh(this.currentAccount.mainAddress!.scriptHash);
263 await this.urchain.refresh(this.currentAccount.tokenAddress!.scriptHash);
264 return await this.getBalance();
265 }
266
267 private commitPayloadAddress(data: Buffer) {
268 const address = generateP2TRCommitDataAddress(

Callers 1

fetchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected