cnft.signContract(SignContract)
Sign a Contract NFT as a counterparty. This sends a transaction from the counterparty signer. If the final signature is collected, the contract becomes completed.
SignContract Type Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| counterpartySigner | Signer | Required | Counterparty signer authorized to sign the contract. Must be connected to a provider. |
| contractNft | string | Required | Contract NFT contract address. |
| contractId | string | Required | Contract ID to sign. |
Returns
| Field | Type | Description |
|---|---|---|
| status | completed or signed or mined_unknown | Status of the signing operation. |
| contractId | string | Contract ID that was signed (from emitted event when available). |
| counterpartySigner | string | Counterparty address that signed (from emitted event when available). |
| receipt | TransactionReceipt | Transaction receipt for the signing call. |
| progress | { collected: number; total: number } | Optional signature progress when status is signed. Total includes the initiator (+1). |
Usage
TypeScript
JavaScript
Example outputs
Signed (more signatures required):status: 'mined_unknown' with contractId and counterpartySigner set to 'unknown'.
