cnft.cancelContract(CancelContract)
Cancel a Contract NFT draft. This sends a transaction from the contract controller and removes the draft from storage.
CancelContract Type Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| contractController | Signer | Required | Contract controller signer authorized to cancel the contract. Must be connected to a provider. |
| contractNft | string | Required | Contract NFT contract address. |
| contractId | string | Required | Contract ID to cancel. |
Returns
| Field | Type | Description |
|---|---|---|
| status | cancelled | Status of the operation. |
| contractNft | string | Contract NFT contract address. |
| contractId | string | Contract ID that was cancelled (from emitted event). |
| cancelledBy | string | Controller address that submitted the transaction. |
| receipt | TransactionReceipt | Transaction receipt for the cancellation call. |
Usage
TypeScript
JavaScript
Example outputs
getDraft for the same contractId will revert with Not found.
