addPiecesWithMetadataCapture
addPiecesWithMetadataCapture(
dataSetId,txHash,captureCallback,options):HttpHandler
Defined in: packages/synapse-core/src/mocks/pdp.ts:327
Creates a handler that captures piece metadata from addPieces requests
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
dataSetId | bigint | Data set ID to match |
txHash | `0x${string}` | Transaction hash to return in Location header |
captureCallback | (metadata) => void | Callback to store captured metadata |
options | PDPMockOptions | Additional options |
Returns
Section titled “Returns”HttpHandler