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

Method utxos

src/urchain.ts:150–155  ·  view source on GitHub ↗
(scriptHashs: string[], _satoshis?: bigint)

Source from the content-addressed store, hash-verified

148
149 // Get available UTXOs using scriptHash and required amount
150 async utxos(scriptHashs: string[], _satoshis?: bigint): Promise<IUtxo[]> {
151 return await this._post("utxos", {
152 scriptHashs,
153 ...(typeof _satoshis !== "undefined" ? {satoshis: _satoshis} : {}),
154 });
155 }
156
157 // Get available Token UTXOs using scriptHash and required amount
158 async tokenutxos(scriptHashs: string[], tick: string, amount?: bigint) {

Callers 5

fetchAllAccountUtxosFunction · 0.80
fetchMethod · 0.80
buildEmptyTokenUTXOMethod · 0.80
mintP2TRNoteV1Method · 0.80

Calls 1

_postMethod · 0.95

Tested by

no test coverage detected