Skip to content

pdp: add /pdp/data-sets/create-and-add client#14

Merged
parkan merged 1 commit into
masterfrom
feat/create-and-add-client
Apr 29, 2026
Merged

pdp: add /pdp/data-sets/create-and-add client#14
parkan merged 1 commit into
masterfrom
feat/create-and-add-client

Conversation

@parkan
Copy link
Copy Markdown
Collaborator

@parkan parkan commented Apr 29, 2026

Server.CreateDataSetAndAddPieces wraps Curio's atomic create+add endpoint: the SP submits a single addPieces(dataSetId=0, recordKeeper, ...) on chain from its own wallet, creating a new FWSS-listened data set and adding the supplied pieces in one tx. This is the on-chain phase of the FWSS-pull flow -- /pdp/piece/pull only does the SP-side piece transfer, the on-chain commit goes through this endpoint with the full abi.encode(bytes,bytes) of the EIP-712-signed CreateDataSet+AddPieces extraData

Mirrors synapse-sdk's createDataSetAndAddPiecesApiRequest. Status (and the resulting dataSetId, once mined) is observed via the existing GetDataSetCreationStatus / WaitForDataSetCreation pollers

Server.CreateDataSetAndAddPieces wraps Curio's atomic create+add endpoint:
the SP submits a single addPieces(dataSetId=0, recordKeeper, ...) on
chain from its own wallet, creating a new FWSS-listened data set and
adding the supplied pieces in one tx. This is the on-chain phase of the
FWSS-pull flow -- /pdp/piece/pull only does the SP-side piece transfer,
the on-chain commit goes through this endpoint with the full
abi.encode(bytes,bytes) of the EIP-712-signed CreateDataSet+AddPieces
extraData.

Mirrors synapse-sdk's createDataSetAndAddPiecesApiRequest. Status (and
the resulting dataSetId, once mined) is observed via the existing
GetDataSetCreationStatus / WaitForDataSetCreation pollers.
@parkan parkan merged commit d64120e into master Apr 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant