Request/Response Example

API Requests

To simplify REST API requests SingleWallet uses HTTP GET and POST method, and always return's JSON format.

REST API URL Common part

https://api.singlewallet.cc/v1/

Simple API call looks like this:

GET /v1/info HTTP/1.1
Host: api.singlewallet.cc
sw-key: {{your_api_key}}
curl -v -X GET 'https://api.singlewallet.cc/v1/info' \
--header 'sw-key: {{your_api_key}}'

API Response

SingleWallet API calls return HTTP status codes.

Each REST API request returns an HTTP status code and status field in response JSON body that can be true(success) or false(error). and message which contains the message status of the response Also returned data included into data field.

Sample account info response

{
    "status": true,
    "message": "Success",
    "data": {
        "total_wallets": 11,
        "accumulated_balance": 31,
        "dust_balance": 0,
        "balance": 28
    }
}