(scriptHashs: string[], tick: string, amount?: bigint)
| 156 | |
| 157 | // Get available Token UTXOs using scriptHash and required amount |
| 158 | async tokenutxos(scriptHashs: string[], tick: string, amount?: bigint) { |
| 159 | const utxos = await this._post("token-utxos", { |
| 160 | scriptHashs, |
| 161 | tick, |
| 162 | ...(typeof amount !== "undefined" ? {amount: amount} : {}), |
| 163 | }); |
| 164 | return utxos.map((utxo) => { |
| 165 | utxo.amount = BigInt(utxo.amount); |
| 166 | return utxo; |
| 167 | }); |
| 168 | } |
| 169 | |
| 170 | // Reset unconfirmed transactions |
| 171 | async refresh(scriptHash: string): Promise<{ |
no test coverage detected