查询平台代理总量
接口调用
POST https://open.tronify.io/api/staking/getTotalResource
以下参数带*字段为必填,不带*号为选填
Request Body
Name
Type
Description
sourceFlag*
String
来源标识
{
"resCode": 100,
"resMsg": "Success",
"data": [
{ "type": "ENERGY", "num": 125000000 },
{ "type": "BANDWIDTH", "num": 3000000 }
]
}
{
// Response
}调用示例
// example
const params = {
"sourceFlag": "tronify"
}
const res = await axios.post('https://open.tronify.io/api/staking/getTotalResource',params)
console.log(res)
if(res.resCode === '100'){
//...
}Postman 示例

Last updated