* Retrieve all UTXOs (confirmed and unconfirmed) locked at the contract's address. * * @returns A list of UTXOs spendable by this contract.
()
| 85 | * @returns A list of UTXOs spendable by this contract. |
| 86 | */ |
| 87 | async getUtxos(): Promise<Utxo[]> { |
| 88 | if (this.contractType === 'p2s') { |
| 89 | return this.provider.getUtxosForLockingBytecode(this.bytecode); |
| 90 | } |
| 91 | |
| 92 | return this.provider.getUtxos(this.address); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | class ContractInternal< |
no test coverage detected