Working with the API
Work with the API is supported by https protocol using
POST requests (there are different request types for different APIs). Thus, it is possible for you to send data to the server in one of the following ways:
- as a URL component in the address bar;
- as a
If the API is accessed using the
POST request method, then the data is encoded into
*.json format and placed in the request body.
You can combine the both transfer methods. For different API data is transmitted in different ways, and for each specific endpoint information on how to pass arguments will be given.
The result of a query is always placed in the server response body in
*.json format. There are several mandatory fields that will always be present in the response. The following table describes these fields:
|This field is always present in the response. If the query is executed correctly, the value will be set to |
|This field is present in the response, if the request is executed with an error and contains an error code. Code |
|This field is shown in the response if a query is executed with an error. It contains a text message about the error. This message is usually shown for failed requests|
|This field can be present in some responses. It contains information on wallet address in the binary representation hex format|
|This field can be present in some responses. It contains an address in the textual format|