Skip to content

pdp API needs new endpoint: GET /pdp/proof-sets/{set-id}/roots/added/{txHash} #520

Open
@rvagg

Description

@rvagg

Currently the transaction hash gets hidden internally. I propose that we make handleAddRootToProofSet similar to similar to handleCreateProofSet and have it return (approximately) this:

	w.Header().Set("Location", "/pdp/proof-sets/{set-id}/roots/added/{txHash}")

And then a new API, like /pdp/proof-sets/created, that can look up the status of the AddProofSet transaction and print out the status.

Then a client can know when, and whether, Curio has accepted the piece because it sees the chain has.

It would also be good to have handleGetProofSetRoot implemented so we can look up details once it's properly created.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions