NetState - corda

corda / net.corda.finance.contracts.asset / NetState

# NetState

`interface NetState<P : Any>`

Common interface for the state subsets used when determining nettability of two or more states. Exposes the underlying issued thing.

### Properties

#### template | `abstract val template: Terms<P>`

### Inheritors

#### BilateralNetState | Subset of state, containing the elements which must match for two obligation transactions to be nettable. If two obligation state objects produce equal bilateral net states, they are considered safe to net directly. Bilateral states are used in close-out netting. `data class BilateralNetState<P : Any> : NetState<P>`
#### MultilateralNetState | Subset of state, containing the elements which must match for two or more obligation transactions to be candidates for netting (this does not include the checks to enforce that everyone's amounts received are the same at the end, which is handled under the verify() function). In comparison to BilateralNetState, this doesn't include the parties' keys, as ensuring balances match on input and output is handled elsewhere. Used in cases where all parties (or their proxies) are signing, such as central clearing. `data class MultilateralNetState<P : Any> : NetState<P>`