npm install @makerdao/dai-plugin-scd
openCdp()will create a new CDP, and then return the CDP object, which can be used to access other CDP functionality. The promise will resolve when the transaction is mined.
getCdp(id)creates a CDP object for an existing CDP. The CDP object can then be used to interact with your CDP.