提取收益
接口调用
POST https://open.tronify.io/api/staking/claimReward
以下参数带*字段为必填,不带*号为选填
Headers
Name
Type
Description
api-key*
String
「登录」接口返回的 user.apiKey
access-token*
String
「登录」接口返回的 token
Request Body
Name
Type
Description
address*
String
用户地址(钱包地址)
sourceFlag*
String
来源标识
stakingId*
String
记录 id
{
"resCode": 100,
"resMsg": "Success",
"data": {}
}{
// Response
}调用示例
// example
const params = {
"address": "Txxxxxxxxxxxxxxxxx",
"sourceFlag": "tronify",
"stakingId": "1"
}
const res = await axios.post('https://open.tronify.io/api/staking/claimReward',params)
console.log(res)
if(res.resCode === '100'){
//...
}Postman 示例

Last updated