CommitOptions
Defined in: packages/synapse-sdk/src/types.ts:489
Options for committing pieces on-chain
Properties
Section titled “Properties”extraData?
Section titled “extraData?”
optionalextraData:`0x${string}`
Defined in: packages/synapse-sdk/src/types.ts:493
Pre-built signed extraData (avoids re-signing)
onSubmitted()?
Section titled “onSubmitted()?”
optionalonSubmitted: (txHash) =>void
Defined in: packages/synapse-sdk/src/types.ts:495
Called when the commit transaction is submitted (before on-chain confirmation)
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
txHash | `0x${string}` |
Returns
Section titled “Returns”void
pieces
Section titled “pieces”pieces:
object[]
Defined in: packages/synapse-sdk/src/types.ts:491
Pieces to commit with optional per-piece metadata
pieceCid
Section titled “pieceCid”pieceCid:
PieceLink
pieceMetadata?
Section titled “pieceMetadata?”
optionalpieceMetadata:MetadataObject