Skip to content

Commit

Permalink
Update Advertise Height to New Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
super3 committed Oct 23, 2015
1 parent a880423 commit 31bde4c
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -218,26 +218,22 @@ Allows the user to let the node know how much space they have generated via the

GET /api/height/<bitcoin address>/<height>

Success Example:
Example:

::

GET /api/height/191GVvAaTRxLmz3rW3nU5jAV1rF186VxQc/50
RESPONSE:
Status Code: 200
Text: Height accepted.

Fail Examples:

::

GET /api/height/notvalidaddress/50
RESPONSE:
Status Code: 400
Text: Ping Failed: Invalid Bitcoin address.

GET /api/height/1EawBV7n7f2wDbgxJfNzo1eHyQ9Gj77oJd/50
RESPONSE:
Status Code: 404
Text: Ping Failed: Farmer not found.
+-------------+----------------------------+-------------------------------------------------+
| Error Codes | What probably happened | Example |
+=============+============================+=================================================+
| 400 | Invalid Bitcoin address | /api/height/notvalidaddress/50 |
+-------------+----------------------------+-------------------------------------------------+
| 401 | Bad authentication headers | /api/ping/12guBkWfVjiqBnu5yRdTseBB7wBM5WSWnm |
+-------------+----------------------------+-------------------------------------------------+
| 404 | Farmer not found | /api/ping/1EawBV7n7f2wDbgxJfNzo1eHyQ9Gj77oJd |
+-------------+----------------------------+-------------------------------------------------+

0 comments on commit 31bde4c

Please sign in to comment.