filter Inputs
Selects UTXOs this contract can use as inputs, layering three gates on top of CommonWallet.filterInputs (which already applies unspent / not-reserved / minConfirms):
Ownership —
sp.contractId == this.contractId, tagged by markInterestingSpendable.Maturity — per UTXO, since one factory holds vaults maturing at different times. This is the CLTV clause: the network rejects a spend whose
nLockTimeis below the unlock value, so refuse here rather than build a tx the node discards. Closed when isVaultMature is null.Selection —
filter == nullcounts only ungrouped Nexa, by satoshi, keepingminAmtin satoshis; a caller wanting tokens returnssp.groupInfo()?.tokenAmount ?: 0or similar.
This override answers the CONTRACT-WIDE question — every vault of the factory — matching balance and the no-scope send. The VaultScope overload is the address-gated one.
What a claim of scope would offer — the same selection send makes, so the two cannot silently disagree. See the filterInputs override for the gates; this entry point adds the address gate for a single-vault scope.