request(
"GET",
"/v1/custody/staking_product/",
{
"product_id": 2751,
"language": "zh",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/staking_product/',
{
"product_id": 2751,
"language": "zh",
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/staking_product/", map[string]string{
"product_id": 2751,
"language": "zh",
})
{
"success": true,
"result": {
"product_id": 2751,
"name": "ZEL PPS",
"description": "30 ZEL\u8d77\u6295\uff0c\u9636\u68af\u6536\u76ca\u7387\uff0c\u8d28\u62bc\u8d8a\u591a\uff0c\u6536\u76ca\u7387\u8d8a\u9ad8\n\u8d28\u62bc\u540e\u7b2c\u4e8c\u5929\u5f00\u59cb\u4ea7\u751f\u6536\u76ca\uff0c\u6bcf\u5929\u6839\u636e\u5168\u7f51\u6536\u76ca\u60c5\u51b5\u53d1\u653e\u6536\u76ca\uff0c\u9009\u62e9\u3010\u5230\u671f\u540e\u81ea\u52a8\u7eed\u671f\u3011\uff0c\u65e0\u7f1d\u8854\u63a5\u4e0b\u4e00\u671f\u6536\u76ca\n\u968f\u65f6\u53ef\u5212\u51fa\uff0cT+1\u5230\u8d26\uff0c\u6536\u76ca\u5468\u671f\u5185\u53d6\u51fa\u635f\u5931\u5f53\u671f\u6536\u76ca\n\u6bcf\u6b21\u53d6\u51fa\u8d4e\u56de\u8d39: 10 ZEL",
"doc_src": "https://support.cobo.com/hc/zh-cn/articles/360025623074",
"coin": "ZEL",
"coin_decimal": 8,
"reward_coin": "ZEL",
"reward_coin_decimal": 8,
"unstake_fee": "1000000000",
"min_amount": "3000000000",
"rate": "0.1351459495",
"rate_type": 2,
"days": 20,
"stake_type": "masternode",
"lockup": false,
"start_stake_time": 1573455600000,
"stop_stake_time": 1573542000000,
"start_staking_time": 1573574400000,
"stop_staking_time": 1575302400000,
"liquidate_time": 1575388800000,
"reward_liquidate_time": 1575388800000
}
}
Staking
Get Staking Product Details
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
staking_product
/
request(
"GET",
"/v1/custody/staking_product/",
{
"product_id": 2751,
"language": "zh",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/staking_product/',
{
"product_id": 2751,
"language": "zh",
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/staking_product/", map[string]string{
"product_id": 2751,
"language": "zh",
})
{
"success": true,
"result": {
"product_id": 2751,
"name": "ZEL PPS",
"description": "30 ZEL\u8d77\u6295\uff0c\u9636\u68af\u6536\u76ca\u7387\uff0c\u8d28\u62bc\u8d8a\u591a\uff0c\u6536\u76ca\u7387\u8d8a\u9ad8\n\u8d28\u62bc\u540e\u7b2c\u4e8c\u5929\u5f00\u59cb\u4ea7\u751f\u6536\u76ca\uff0c\u6bcf\u5929\u6839\u636e\u5168\u7f51\u6536\u76ca\u60c5\u51b5\u53d1\u653e\u6536\u76ca\uff0c\u9009\u62e9\u3010\u5230\u671f\u540e\u81ea\u52a8\u7eed\u671f\u3011\uff0c\u65e0\u7f1d\u8854\u63a5\u4e0b\u4e00\u671f\u6536\u76ca\n\u968f\u65f6\u53ef\u5212\u51fa\uff0cT+1\u5230\u8d26\uff0c\u6536\u76ca\u5468\u671f\u5185\u53d6\u51fa\u635f\u5931\u5f53\u671f\u6536\u76ca\n\u6bcf\u6b21\u53d6\u51fa\u8d4e\u56de\u8d39: 10 ZEL",
"doc_src": "https://support.cobo.com/hc/zh-cn/articles/360025623074",
"coin": "ZEL",
"coin_decimal": 8,
"reward_coin": "ZEL",
"reward_coin_decimal": 8,
"unstake_fee": "1000000000",
"min_amount": "3000000000",
"rate": "0.1351459495",
"rate_type": 2,
"days": 20,
"stake_type": "masternode",
"lockup": false,
"start_stake_time": 1573455600000,
"stop_stake_time": 1573542000000,
"start_staking_time": 1573574400000,
"stop_staking_time": 1575302400000,
"liquidate_time": 1575388800000,
"reward_liquidate_time": 1575388800000
}
}
Request
String
required
Unique ID for staking product
String
Language of product description(zh,en(default))
Response
bool
request successful or failed
object
Show object
Show object
String
Product name
String
Product description
String
Product detailed description doc
String
Coin code
Int
Coin decimal
String
Reward coin
Int
Reward coin decimal
String
Unstake fee
String
Min. amount to stake
String
Yearly ROI
Int
1:fixed rate 2:estimated rate
Int
Reward period
String
Staking type(Masternode, DPoS, etc)
Bool
If there’s a lockup period
Int
Start stake time(mileseconds timestamp)
Int
Stop stake time(mileseconds timestamp)
Int
Start staking time(mileseconds timestamp)
Int
Stop staking time(mileseconds timestamp)
Int
Liquidate time(mileseconds timestamp)
Int
Reward liquidate time(mileseconds timestamp)
Int
Product id(unique)
String
product of group
request(
"GET",
"/v1/custody/staking_product/",
{
"product_id": 2751,
"language": "zh",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/staking_product/',
{
"product_id": 2751,
"language": "zh",
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/staking_product/", map[string]string{
"product_id": 2751,
"language": "zh",
})
{
"success": true,
"result": {
"product_id": 2751,
"name": "ZEL PPS",
"description": "30 ZEL\u8d77\u6295\uff0c\u9636\u68af\u6536\u76ca\u7387\uff0c\u8d28\u62bc\u8d8a\u591a\uff0c\u6536\u76ca\u7387\u8d8a\u9ad8\n\u8d28\u62bc\u540e\u7b2c\u4e8c\u5929\u5f00\u59cb\u4ea7\u751f\u6536\u76ca\uff0c\u6bcf\u5929\u6839\u636e\u5168\u7f51\u6536\u76ca\u60c5\u51b5\u53d1\u653e\u6536\u76ca\uff0c\u9009\u62e9\u3010\u5230\u671f\u540e\u81ea\u52a8\u7eed\u671f\u3011\uff0c\u65e0\u7f1d\u8854\u63a5\u4e0b\u4e00\u671f\u6536\u76ca\n\u968f\u65f6\u53ef\u5212\u51fa\uff0cT+1\u5230\u8d26\uff0c\u6536\u76ca\u5468\u671f\u5185\u53d6\u51fa\u635f\u5931\u5f53\u671f\u6536\u76ca\n\u6bcf\u6b21\u53d6\u51fa\u8d4e\u56de\u8d39: 10 ZEL",
"doc_src": "https://support.cobo.com/hc/zh-cn/articles/360025623074",
"coin": "ZEL",
"coin_decimal": 8,
"reward_coin": "ZEL",
"reward_coin_decimal": 8,
"unstake_fee": "1000000000",
"min_amount": "3000000000",
"rate": "0.1351459495",
"rate_type": 2,
"days": 20,
"stake_type": "masternode",
"lockup": false,
"start_stake_time": 1573455600000,
"stop_stake_time": 1573542000000,
"start_staking_time": 1573574400000,
"stop_staking_time": 1575302400000,
"liquidate_time": 1575388800000,
"reward_liquidate_time": 1575388800000
}
}
⌘I
