Skip to main content

cnft.createContract(CreateContract)

Create a Contract NFT draft by initializing the contract with counterparties and content, and paying the setup fee (ERC20). This sends a transaction from the contract controller.

CreateContract Type Parameters

Returns

Usage

TypeScript

JavaScript

Example outputs

Note: the contract ID is deterministic based on initiator, counterparties, content hash, and URL.