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

Function getTokenUtxos

src/wallet.ts:163–174  ·  view source on GitHub ↗
(tick: string, amount?: bigint)

Source from the content-addressed store, hash-verified

161 abstract refresh(): any;
162
163 async getTokenUtxos(tick: string, amount?: bigint) {
164 const tokenUtxos = await this.urchain.tokenutxos(
165 [this.currentAccount.tokenAddress!.scriptHash],
166 tick,
167 amount
168 );
169 if (tokenUtxos.length === 0) {
170 throw new Error("No UTXOs found");
171 }
172
173 return tokenUtxos;
174 }
175
176 // Get Satoshi balance of the current account
177 async getBalance(): Promise<{

Callers

nothing calls this directly

Calls 1

tokenutxosMethod · 0.80

Tested by

no test coverage detected