send
Claim coins out of this factory's vaults. VaultScope.Current and VaultScope.At claim exactly one vault; VaultScope.AllMature drains every mature vault on one side of the nLockTime split, and is what the WalletContract.send override delegates to.
A claim always drains the whole spendable vault, not just enough to cover dests plus fee: coins left behind stay locked at the vault address, and a grouped input the completer is never told about is silently melted. Surplus comes back to the wallet — native folded into the caller's native output (which also carries the fee) or returned as change, a token group dests never mentions swept whole to a change destination, and every unmatched authority re-emitted.
Batonless authorities and fenced-group coins are deliberately left at the vault: spending either can only destroy it.
A scoped claim refuses before reserving anything when the vault is immature or holds nothing, rather than selecting nothing and funding the spend out of a sibling.
On success the returned transaction's inputs stay reserved. A caller that does not broadcast must release them with CommonWallet.abortTransaction, or the vault reads unspendable for the session.
Caveat: USE_GROUP_AUTHORITIES also gates mint-to-cover-deficit in wallet.kt, so a grouped output asking for more tokens than the vault holds silently mints the shortfall when a MINT authority is present. No flag combination gives baton passthrough without it.
The WalletContract entry point: a factory-wide claim. Kept at VaultScope.AllMature so an embedder that has only ever called send keeps the behaviour it has always had; claim a single vault with the VaultScope overload.