celestiaorg / go-cnc

celestia-node REST client in Go.
Apache License 2.0
15 stars 8 forks source link

Create `Head` method #16

Open tzdybal opened 2 years ago

tzdybal commented 2 years ago

Head method (corresponding to /head endpoint) needs to be added to client.

Specs: https://docs.celestia.org/developers/node-api/#get-head Code in node: https://github.com/celestiaorg/celestia-node/blob/0466d9c9222f7ceacba2223a83fd352b5d751d1e/service/rpc/header.go#L22

This is height-less version of /header endpoint.

Regis-Caelum commented 1 year ago

Hey @tzdybal i would like to take this one up

tzdybal commented 1 year ago

Great! :tada:

Feel free to ask any questions.

Regis-Caelum commented 1 year ago

what would be the response type for head request, no implementation is mentioned

Regis-Caelum commented 1 year ago

Great! tada

Feel free to ask any questions.

Hey, what would be the response type for head request, no implementation is mentioned