📑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.
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
A successful response.
An unexpected error response.
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"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
A successful response.
An unexpected error response.
GET /github.com/DhpcChain/Dhpc/request/allowed_oracles/{id} HTTP/1.1
Host:
Accept: */*
{
"AllowedOracles": {
"id": "text",
"name": "text",
"address": "text",
"creator": "text"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
A successful response.
An unexpected error response.
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
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
A successful response.
An unexpected error response.
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"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
A successful response.
An unexpected error response.
GET /github.com/DhpcChain/Dhpc/user/linked_requesters/{index} HTTP/1.1
Host:
Accept: */*
{
"linkedRequesters": {
"index": "text",
"network": "text",
"address": "text"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
A successful response.
An unexpected error response.
GET /github.com/DhpcChain/Dhpc/user/slash_history/{index} HTTP/1.1
Host:
Accept: */*
{
"slashHistory": {
"index": "text",
"datetime": 1,
"amount": 1,
"level": 1
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
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"
}
}
A successful response.
An unexpected error response.
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