(tick: string, amount?: bigint)
| 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<{ |
nothing calls this directly
no test coverage detected