get reward info

기본 정보

/staking/getRewardInfo API를 통해 WEMIX.Fi 스테이킹 풀의 리워드 정보를 확인할 수 있습니다.

Staking reward information

GET /staking/getRewardInfo

입력한 블록 넘버를 기준으로 스테이킹 풀의 리워드를 반환합니다.

Query Parameters

NameTypeDescription

block_number

number

정보를 조회할 블록넘버

{
  "type": "success",
  "message": "success",
  "data": {
    "_staking_reward": {
      "totalStakedGrand": "string",
      "totalRewardGrand": "string",
      "totalStakedLiquid": "string",
      "totalRewardLiquid": "string"
    },
    "staking_reward": {
      "totalStakedGrand": 0,
      "totalRewardGrand": 0,
      "totalStakedLiquid": 0,
      "totalRewardLiquid": 0
    }
  }
}

Request

Parameter

NameTypeDescription

block_number

number

정보를 조회할 블록넘버

Response

Parameter

NameTypeDescription

type

string

성공/실패 여부

message

string

성공/실패 메시지

data

-

-

totalStakedGrand

string

사용자가 에치한 그랜드 스테이킹의 전체 WEMIX 수량(단위: wei, WEMIX)

totalRewardGrand

string

사용자가 예치한 리퀴드 스테이킹의 전체 WEMIX 수량(단위: wei, WEMIX)

totalStakedLiquid

string

그랜드 스테이킹으로부터 도출된 리워드의 총량(단위: wei, WEMIX)

totalRewardLiquid

string

리퀴드 스테이킹으로부터 도출된 리워드의 총량(단위: wei, WEMIX)

Sample

Request

curl

curl -X 'GET' \
  'https://openapi.wemix.fi/staking/getRewardInfo' \
  -H 'accept: application/json'

Request URL

https://openapi.wemix.fi/staking/getRewardInfo

Response

{
  "type": "success",
  "message": "success",
  "data": {
    "_staking_reward": {
      "totalStakedGrand": "40059117466308860412790618",
      "totalRewardGrand": "1602081000000000000000000",
      "totalStakedLiquid": "2594451438708084400000000",
      "totalRewardLiquid": "111586554393232140000000"
    },
    "staking_reward": {
      "totalStakedGrand": 40059117.46630886,
      "totalRewardGrand": 1602081,
      "totalStakedLiquid": 2594451.438708084,
      "totalRewardLiquid": 111586.55439323215
    }
  }
}