Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Create Reward Default endpoint #1353

Closed
Tracked by #1304
sameersubudhi opened this issue Nov 22, 2022 · 0 comments
Closed
Tracked by #1304

Create Reward Default endpoint #1353

sameersubudhi opened this issue Nov 22, 2022 · 0 comments

Comments

@sameersubudhi
Copy link
Contributor

Description

Create the following endpoint.

HTTP GET /api/v3/reward/default
RPC  get.reward.default

Acceptance Criteria

  • The endpoints listed above are created
  • The response is matching as described below
  • All the methods, variables, files are renamed appropriately
  • Swagger is up-to-date
  • Integration tests are up-to-date

Additional information

Request params:

Parameter Type Validation Default Comment
height Number [0, ∞) (empty) Block height

Responses:

200 OK

{
  "data": {
    "defaultReward": "0",
    "tokenID": "0000000000000000"
  },
  "meta": {}
}

400 Bad Request

{
  "error": true,
  "message": "Unknown input parameter(s): <param_name>"
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants