generate Exit
fun <P : Any> generateExit(tx: <Error class: unknown class>, amountIssued: <Error class: unknown class><<Error class: unknown class><<Error class: unknown class><P>>>, assetStates: List<<Error class: unknown class><<Error class: unknown class><P>>>): Set<PublicKey>
Generate an transaction exiting an obligation from the ledger.
Return
the public keys which must sign the transaction for it to be valid.
Parameters
tx
transaction builder to add states and commands to.
amount Issued
the amount to be exited, represented as a quantity of issued currency.
asset States
the asset states to take funds from. No checks are done about ownership of these states, it is the responsibility of the caller to check that they do not exit funds held by others.