📑API Reference

This is a list of APIs that are specific to Dhpc, for a full list of Cosmos SDK APIs refer to their documentation.

get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/data/data HTTP/1.1
Host: 
Accept: */*
{
  "data": [
    {
      "address": "text",
      "owner": "text",
      "network": "text",
      "dateAdded": "text",
      "dateUpdated": "text",
      "blockValidity": "text",
      "event": "text",
      "score": 1,
      "hit": "text",
      "hash": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}
get
Path parameters
addressstringRequired
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/data/data/{address} HTTP/1.1
Host: 
Accept: */*
{
  "data": [
    {
      "address": "text",
      "owner": "text",
      "network": "text",
      "dateAdded": "text",
      "dateUpdated": "text",
      "blockValidity": "text",
      "event": "text",
      "score": 1,
      "hit": "text",
      "hash": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a list of Data items.

get
Path parameters
addressstringRequired
ownerstringRequired
networkstringRequired
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/data/data/{address}/{owner}/{network} HTTP/1.1
Host: 
Accept: */*
{
  "data": {
    "address": "text",
    "owner": "text",
    "network": "text",
    "dateAdded": "text",
    "dateUpdated": "text",
    "blockValidity": "text",
    "event": "text",
    "score": 1,
    "hit": "text",
    "hash": "text"
  }
}

Parameters queries the parameters of the module.

get
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/data/params HTTP/1.1
Host: 
Accept: */*
{
  "params": {}
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/allowed_oracles HTTP/1.1
Host: 
Accept: */*
{
  "AllowedOracles": [
    {
      "id": "text",
      "name": "text",
      "address": "text",
      "creator": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a list of AllowedOracles items.

get
Path parameters
idstring · uint64Required
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/allowed_oracles/{id} HTTP/1.1
Host: 
Accept: */*
{
  "AllowedOracles": {
    "id": "text",
    "name": "text",
    "address": "text",
    "creator": "text"
  }
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/miner_response HTTP/1.1
Host: 
Accept: */*
{
  "minerResponse": [
    {
      "uUID": "text",
      "requestUUID": "text",
      "hash": "text",
      "answer": 1,
      "creator": "text",
      "dataUsed": "text",
      "salt": 1
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a list of MinerResponse items.

get
Path parameters
uUIDstringRequired
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/miner_response/{uUID} HTTP/1.1
Host: 
Accept: */*
{
  "minerResponse": {
    "uUID": "text",
    "requestUUID": "text",
    "hash": "text",
    "answer": 1,
    "creator": "text",
    "dataUsed": "text",
    "salt": 1
  }
}

Parameters queries the parameters of the module.

get
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/params HTTP/1.1
Host: 
Accept: */*
{
  "params": {}
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/request_record HTTP/1.1
Host: 
Accept: */*
{
  "requestRecord": [
    {
      "uUID": "text",
      "tXhash": "text",
      "network": "text",
      "from": "text",
      "address": "text",
      "score": 1,
      "oracle": "text",
      "block": "text",
      "stage": 1,
      "miners": [
        {
          "uUID": "text",
          "requestUUID": "text",
          "hash": "text",
          "answer": 1,
          "creator": "text",
          "dataUsed": "text",
          "salt": 1
        }
      ],
      "creator": "text",
      "createdBlock": "text",
      "updatedBlock": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a list of RequestRecord items.

get
Path parameters
uUIDstringRequired
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/request_record/{uUID} HTTP/1.1
Host: 
Accept: */*
{
  "requestRecord": {
    "uUID": "text",
    "tXhash": "text",
    "network": "text",
    "from": "text",
    "address": "text",
    "score": 1,
    "oracle": "text",
    "block": "text",
    "stage": 1,
    "miners": [
      {
        "uUID": "text",
        "requestUUID": "text",
        "hash": "text",
        "answer": 1,
        "creator": "text",
        "dataUsed": "text",
        "salt": 1
      }
    ],
    "creator": "text",
    "createdBlock": "text",
    "updatedBlock": "text"
  }
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/request_record_answer_pending HTTP/1.1
Host: 
Accept: */*
{
  "requestRecord": [
    {
      "uUID": "text",
      "tXhash": "text",
      "network": "text",
      "from": "text",
      "address": "text",
      "score": 1,
      "oracle": "text",
      "block": "text",
      "stage": 1,
      "miners": [
        {
          "uUID": "text",
          "requestUUID": "text",
          "hash": "text",
          "answer": 1,
          "creator": "text",
          "dataUsed": "text",
          "salt": 1
        }
      ],
      "creator": "text",
      "createdBlock": "text",
      "updatedBlock": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/request_record_miner_pending HTTP/1.1
Host: 
Accept: */*
{
  "requestRecord": [
    {
      "uUID": "text",
      "tXhash": "text",
      "network": "text",
      "from": "text",
      "address": "text",
      "score": 1,
      "oracle": "text",
      "block": "text",
      "stage": 1,
      "miners": [
        {
          "uUID": "text",
          "requestUUID": "text",
          "hash": "text",
          "answer": 1,
          "creator": "text",
          "dataUsed": "text",
          "salt": 1
        }
      ],
      "creator": "text",
      "createdBlock": "text",
      "updatedBlock": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a Treasury by index.

get
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/request/treasury HTTP/1.1
Host: 
Accept: */*
{
  "Treasury": {
    "address": "text",
    "creator": "text"
  }
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/user/linked_requesters HTTP/1.1
Host: 
Accept: */*
{
  "linkedRequesters": [
    {
      "index": "text",
      "network": "text",
      "address": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a list of LinkedRequesters items.

get
Path parameters
indexstringRequired
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/user/linked_requesters/{index} HTTP/1.1
Host: 
Accept: */*
{
  "linkedRequesters": {
    "index": "text",
    "network": "text",
    "address": "text"
  }
}

Parameters queries the parameters of the module.

get
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/user/params HTTP/1.1
Host: 
Accept: */*
{
  "params": {}
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/user/slash_history HTTP/1.1
Host: 
Accept: */*
{
  "slashHistory": [
    {
      "index": "text",
      "datetime": 1,
      "amount": 1,
      "level": 1
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a list of SlashHistory items.

get
Path parameters
indexstringRequired
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/user/slash_history/{index} HTTP/1.1
Host: 
Accept: */*
{
  "slashHistory": {
    "index": "text",
    "datetime": 1,
    "amount": 1,
    "level": 1
  }
}
get
Query parameters
pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/user/user HTTP/1.1
Host: 
Accept: */*
{
  "user": [
    {
      "account": "text",
      "reputation": 1,
      "deposit": [
        {
          "denom": "text",
          "amount": "text"
        }
      ],
      "linkedRequester": [
        {
          "index": "text",
          "network": "text",
          "address": "text"
        }
      ],
      "slashHistory": [
        {
          "index": "text",
          "datetime": 1,
          "amount": 1,
          "level": 1
        }
      ]
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

Queries a list of User items.

get
Path parameters
accountstringRequired
Responses
200
A successful response.
application/json
get
GET /github.com/DhpcChain/Dhpc/user/user/{account} HTTP/1.1
Host: 
Accept: */*
{
  "user": {
    "account": "text",
    "reputation": 1,
    "deposit": [
      {
        "denom": "text",
        "amount": "text"
      }
    ],
    "linkedRequester": [
      {
        "index": "text",
        "network": "text",
        "address": "text"
      }
    ],
    "slashHistory": [
      {
        "index": "text",
        "datetime": 1,
        "amount": 1,
        "level": 1
      }
    ]
  }
}

Last updated