request(
"GET",
"/v1/custody/stakings/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/stakings/',
{
"coin": "ZEL",
},
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/stakings/", map[string]string{
"coin": "ZEL",
})
{
"success": true,
"result": [
{
"staking_id": 57520,
"coin": "TETH",
"coin_decimal": 18,
"amount": "23391613625225404",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 873919022232,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691387100000,
"stop_stake_time": 1691389800000,
"start_staking_time": 1691389800000,
"stop_staking_time": 1691397000000,
"liquidate_time": 1691397060000,
"reward_liquidate_time": 1691397120000,
"product_id": 236080,
"product_group": " TETHPPSW"
}
},
{
"staking_id": 57523,
"coin": "TETH",
"coin_decimal": 18,
"amount": "1063172",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 28,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691388900000,
"stop_stake_time": 1691391600000,
"start_staking_time": 1691391600000,
"stop_staking_time": 1691398800000,
"liquidate_time": 1691398860000,
"reward_liquidate_time": 1691398920000,
"product_id": 236082,
"product_group": " TETHPPSW"
}
}
]
}
Staking
Get Staking Data
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
stakings
/
request(
"GET",
"/v1/custody/stakings/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/stakings/',
{
"coin": "ZEL",
},
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/stakings/", map[string]string{
"coin": "ZEL",
})
{
"success": true,
"result": [
{
"staking_id": 57520,
"coin": "TETH",
"coin_decimal": 18,
"amount": "23391613625225404",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 873919022232,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691387100000,
"stop_stake_time": 1691389800000,
"start_staking_time": 1691389800000,
"stop_staking_time": 1691397000000,
"liquidate_time": 1691397060000,
"reward_liquidate_time": 1691397120000,
"product_id": 236080,
"product_group": " TETHPPSW"
}
},
{
"staking_id": 57523,
"coin": "TETH",
"coin_decimal": 18,
"amount": "1063172",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 28,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691388900000,
"stop_stake_time": 1691391600000,
"start_staking_time": 1691391600000,
"stop_staking_time": 1691398800000,
"liquidate_time": 1691398860000,
"reward_liquidate_time": 1691398920000,
"product_id": 236082,
"product_group": " TETHPPSW"
}
}
]
}
Request
String
The coin to query staking information for.
String
The language to parse product information in.
Response
bool
request successful or failed
object[]
Show object
Show object
Int
The ID of the staking.
String
The code of the staked coin.
Int
The decimal of the staked coin.
Int
The amount of the staked coin.
String
The code of the reward coin.
Int
The decimal of the reward coin.
String
The amount of the reward coin.
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/stakings/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/stakings/',
{
"coin": "ZEL",
},
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/stakings/", map[string]string{
"coin": "ZEL",
})
{
"success": true,
"result": [
{
"staking_id": 57520,
"coin": "TETH",
"coin_decimal": 18,
"amount": "23391613625225404",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 873919022232,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691387100000,
"stop_stake_time": 1691389800000,
"start_staking_time": 1691389800000,
"stop_staking_time": 1691397000000,
"liquidate_time": 1691397060000,
"reward_liquidate_time": 1691397120000,
"product_id": 236080,
"product_group": " TETHPPSW"
}
},
{
"staking_id": 57523,
"coin": "TETH",
"coin_decimal": 18,
"amount": "1063172",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 28,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691388900000,
"stop_stake_time": 1691391600000,
"start_staking_time": 1691391600000,
"stop_staking_time": 1691398800000,
"liquidate_time": 1691398860000,
"reward_liquidate_time": 1691398920000,
"product_id": 236082,
"product_group": " TETHPPSW"
}
}
]
}
⌘I
