@@ -619,16 +619,32 @@ export interface CommitOptions {
619619 pieces : Array < { pieceCid : PieceCID ; pieceMetadata ?: MetadataObject } >
620620 /** Pre-built signed extraData (avoids re-signing) */
621621 extraData ?: Hex
622- /** Called when the commit transaction is submitted (before on-chain confirmation) */
622+ /**
623+ * Called when the commit transaction is submitted (before on-chain confirmation).
624+ * The hash is Curio's Location wait key and is not guaranteed to be the final
625+ * included on-chain hash if Curio replaces the send by fee. Prefer
626+ * {@link CommitResult.confirmedTxHash} after confirmation.
627+ */
623628 onSubmitted ?: ( txHash : Hex ) => void
624629}
625630
626631/**
627632 * Result of a commit operation
628633 */
629634export interface CommitResult {
630- /** Transaction hash */
635+ /**
636+ * Original Location / wait-key transaction hash from Curio.
637+ * Not necessarily the included on-chain hash after replace-by-fee.
638+ * Keep using this for Curio status polling / resume URLs.
639+ */
631640 txHash : Hex
641+ /**
642+ * Hash included on chain once confirmed. Differs from {@link txHash} when
643+ * Curio replaced the original send by fee. Omitted when the SP does not
644+ * report it (older Curio).
645+ * For explorers and receipt lookups use `confirmedTxHash ?? txHash`.
646+ */
647+ confirmedTxHash ?: Hex
632648 /** Piece IDs assigned by the contract */
633649 pieceIds : bigint [ ]
634650 /** Data set ID (may be newly created) */
@@ -649,16 +665,33 @@ export interface TerminateServiceOptions {
649665 * cooperation, but the service runs to the end of the lockup period.
650666 */
651667 skipProvider ?: boolean
652- /** Called when the termination transaction is submitted (before on-chain confirmation) */
668+ /**
669+ * Called when the termination transaction is submitted (before on-chain confirmation).
670+ * For provider-relayed termination this is Curio's wait-key hash and may differ
671+ * from the included on-chain hash after replace-by-fee. Prefer
672+ * {@link TerminateServiceResult.confirmedTxHash} after confirmation.
673+ */
653674 onSubmitted ?: ( txHash : Hex ) => void
654675}
655676
656677/**
657678 * Result of a data set service termination
658679 */
659680export interface TerminateServiceResult {
660- /** Transaction hash. Undefined when the service was already terminated without a provider transaction. */
681+ /**
682+ * Original wait-key transaction hash. Undefined when the service was already
683+ * terminated without a provider transaction. May differ from the included
684+ * on-chain hash after replace-by-fee.
685+ * Keep using this for Curio status polling / resume URLs.
686+ */
661687 txHash ?: Hex
688+ /**
689+ * Hash included on chain once confirmed. Differs from {@link txHash} when
690+ * Curio replaced the original send by fee. Omitted when the SP does not
691+ * report it (older Curio) or when no termination tx was sent.
692+ * For explorers and receipt lookups use `confirmedTxHash ?? txHash`.
693+ */
694+ confirmedTxHash ?: Hex
662695 /** The data set ID */
663696 dataSetId : bigint
664697 /**
0 commit comments