handshake-org / handshake-org/hsd

Additional Node HTTP Endpoints

Open
#142 4 comments 1 reaction 0 assignees View on GitHub
discussion node-http
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.