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.
The counterparty must have an ONCHAINID identity with a valid KYC claim and be listed in the draft’s counterparties, or the call reverts with UserNotKyxd or Signer is not a counterparty.
SignContract Type Parameters
Returns
Usage
TypeScript
JavaScript
Example outputs
Signed (more signatures required):ContractSigned or ContractCompleted event is found in the receipt, the SDK returns status: 'mined_unknown' with the contractId you passed in and counterpartySigner set to 'unknown'.
