Claim Revenue
Endpoint usage
POST https://open.tronify.io/api/staking/claimReward
The fields with * are required, and the fields without * are optional
Headers
Name
Type
Description
api-key*
String
user.apiKey returned by the "Login" API
access-token*
String
token returned by the "Login" API
Request Body
Name
Type
Description
address*
String
User wallet address
sourceFlag*
String
Source identifier
stakingId*
String
Record ID
{
"resCode": 100,
"resMsg": "Success",
"data": {}
}{
// Response
}code example
// 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 example

Last updated