Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.61 KB

File metadata and controls

60 lines (44 loc) · 1.61 KB

Retrieving download pricing rate

Retrieves the current prices established for retrieving contributions.

Protocol: HTTP

EncodingJSON

Endpoint/data/api/v1/contribution-management/contribution/price

MethodGET

Header: Authorization — represented by a string that is the accessToken value that was returned either at the authorization, or the previous time the token has been refreshed.

Input/request structure

A GET request to the endpoint with the Authorization header specified.

Output/response structure

::: details Show

::: code-group Data structure

{
  status: {
    code: integer($int32),
    name: 'string'
  },
  data: {
    price: integer($int32) //the amount of tokens rewarded for submitting a contribution
    confidenceIndexPrice: integer($int32) //the amount of tokens rewarded for submitting a contribution with the maximum confidence index
  }
}
{
  status: {
    code: 200,
    name: 'OK'
  },
  data: {
    price: 1,
    confidenceIndexPrice: 2
  }
}

:::

Responses

Response Code Description
200 The pricing rate has been successfully retrieved.
401 User signature is incorrect or failed to be decoded.
404 Either account or its metadata key has not been found.
500 Internal server error.