CommercialPaper
Keywords: net.corda.finance.contracts.CommercialPaper class
Date: 2023-09-18

net.corda.finance.contracts

## Class CommercialPaper

- net.corda.finance.contracts.CommercialPaper

- All Implemented Interfaces:
    Contract

      public class CommercialPaper
      implements Contract

- - ### Field Detail

    - #### CP_PROGRAM_ID

          @NotNull
          public static java.lang.String CP_PROGRAM_ID

      See Also:
        Constant Field Values

    - #### Companion

          public static net.corda.finance.contracts.CommercialPaper.Companion Companion

  - ### Constructor Detail

    - #### CommercialPaper

          public CommercialPaper()

  - ### Method Detail

    - #### verify

          public void verify(@NotNull
                             LedgerTransaction tx)

      Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense. Must throw an exception if there's a problem that should prevent state transition. Takes a single object rather than an argument so that additional data can be added without breaking binary compatibility with existing contract code.