CommitOptions
Defined in: packages/synapse-sdk/src/types.ts:675
Options for the commit() split operation
Properties
Section titled “Properties”extraData?
Section titled “extraData?”
optionalextraData:`0x${string}`
Defined in: packages/synapse-sdk/src/types.ts:683
Pre-built signed extraData. When provided, skips internal EIP-712 signing.
onSubmitted()?
Section titled “onSubmitted()?”
optionalonSubmitted: () =>void
Defined in: packages/synapse-sdk/src/types.ts:685
Called after the addPieces transaction is submitted but before on-chain confirmation
Returns
Section titled “Returns”void
pieces
Section titled “pieces”pieces:
object[]
Defined in: packages/synapse-sdk/src/types.ts:677
Pieces to commit on-chain
pieceCid
Section titled “pieceCid”pieceCid:
PieceLink
pieceMetadata?
Section titled “pieceMetadata?”
optionalpieceMetadata:Record<string,string>
Per-piece metadata (distinct from dataset metadata)