Introduction

This is the api for services running at https://api.b2bcoin.xyz

Overview

HTTP verbs

Person-service tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP verbs.

Verb Usage

GET

Used to retrieve a resource

POST

Used to create a new resource

PATCH

Used to update an existing resource, including partial updates

PUT

Used to update an existing resource, full updates only

DELETE

Used to delete an existing resource

HTTP status codes

Person-service tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP status codes.

Status code Usage

200 OK

Standard response for successful HTTP requests.

The actual response will depend on the request method used.

In a GET request, the response will contain an entity corresponding to the requested resource.

In a POST request, the response will contain an entity describing or containing the result of the action.

201 Created

The request has been fulfilled and resulted in a new resource being created.

204 No Content

The server successfully processed the request, but is not returning any content.

400 Bad Request

The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

404 Not Found

Api

Coin availability amount

Http request
GET /api/coin/get/amount HTTP/1.1
Host: api.b2bcoin.xyz
Curl request
$ curl 'https://api.b2bcoin.xyz/api/coin/get/amount' -i -X GET
Httpie request
$ http GET 'https://api.b2bcoin.xyz/api/coin/get/amount'
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 6

245156

Blockchain height

Http request
GET /api/coin/get/height HTTP/1.1
Host: api.b2bcoin.xyz
Curl request
$ curl 'https://api.b2bcoin.xyz/api/coin/get/height' -i -X GET
Httpie request
$ http GET 'https://api.b2bcoin.xyz/api/coin/get/height'
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 6

156879

Blockchain hashrate

Http request
GET /api/coin/get/hashrate HTTP/1.1
Host: api.b2bcoin.xyz
Curl request
$ curl 'https://api.b2bcoin.xyz/api/coin/get/hashrate' -i -X GET
Httpie request
$ http GET 'https://api.b2bcoin.xyz/api/coin/get/hashrate'
response
HTTP/1.1 200 OK
Content-Type: text/plain;charset=UTF-8
Content-Length: 8

3.45 Mhz

Blockchain difficulty

Http request
GET /api/coin/get/difficulty HTTP/1.1
Host: api.b2bcoin.xyz
Curl request
$ curl 'https://api.b2bcoin.xyz/api/coin/get/difficulty' -i -X GET
Httpie request
$ http GET 'https://api.b2bcoin.xyz/api/coin/get/difficulty'
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 9

156489795