handshake-org / handshake-org/hsd
Additional Node HTTP Endpoints
- Dominant language
- JavaScript
- Stars
- 2.1k
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
# Overview
edited 5/30/19
A high priority TODO is migrating the RPCs to HTTP to allow for more flexibility. This should be fairly straight forward to accomplish since most of the code has already been written and just needs to be adapted to using the HTTP resources instead of the RPC resources.
# Proposal
Additional Endpoints to be added:
| RPC | HTTP |
| ------------- |:-------------|
| `getnameinfo` |`GET /name/:name` |
| `getnamebyhash` | `GET /name/hash/:hash` |
| `getnameresource` | `GET /resource/name/:name` |
| `getnameresourcebyhash` | `GET /resource/hash/:hash` |
| `getnameproof` | `GET /proof/name/:name` |
| `gtetnameproofbyhash` | `GET /proof/hash/:hash` |
| `grindname` | `GET /grind?size=int` |
`sendrawclaim` already is implemented as `POST /claim`
This work has been started here:
- https://github.com/tynes/hsd/blob/node-http/lib/node/http.js
- https://github.com/handshake-org/hsd/pull/168
Previous Issues mentioning this include https://github.com/handshake-org/hsd/issues/12, https://github.com/handshake-org/hsd/issues/126
Contributor guide
Assessment
This issue has not been assessed yet.