Get Active Stakes
curl --request GET \
--url https://api.copper.co/platform/staking/active-stakesimport requests
url = "https://api.copper.co/platform/staking/active-stakes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.copper.co/platform/staking/active-stakes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.copper.co/platform/staking/active-stakes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.copper.co/platform/staking/active-stakes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.copper.co/platform/staking/active-stakes")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copper.co/platform/staking/active-stakes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"activeStakes": [
{
"activeStake": {
"activeStakedAmount": "<string>",
"canIncreaseStakeAmount": true,
"claimableRewardsAmount": "<string>",
"endTimeSeconds": "<string>",
"pool": {
"extra": {
"activationInputs": {},
"activationStep": {},
"netuid": "<string>",
"neuronFollowees": [
"<string>"
],
"nominateAmount": "<string>",
"swapExtra": {},
"unnominateAmount": "<string>"
},
"poolId": "<string>",
"poolName": "<string>",
"totalBonded": "<string>",
"validatorProviderId": "<string>"
},
"pools": [
{
"extra": {
"activationInputs": {},
"activationStep": {},
"netuid": "<string>",
"neuronFollowees": [
"<string>"
],
"nominateAmount": "<string>",
"swapExtra": {},
"unnominateAmount": "<string>"
},
"poolId": "<string>",
"poolName": "<string>",
"totalBonded": "<string>",
"validatorProviderId": "<string>"
}
],
"readyToRedelegate": true,
"readyToUndelegateStakingPermissions": true,
"readyToUnstake": true,
"readyToUnstakeAt": "<string>",
"requireChillToUnstake": true,
"rewardRate": "<string>",
"rewardsAutoRestake": true,
"rewardsRequireClaim": true,
"stakeAddress": "<string>",
"warning": {
"message": "<string>",
"code": "<string>"
}
},
"activeStakeId": "<string>",
"createdAt": "<string>",
"currency": "<string>",
"depositTargetId": "<string>",
"mainCurrency": "<string>",
"organizationId": "<string>",
"portfolioId": "<string>",
"updatedAt": "<string>"
}
]
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Staking
Get active stakes
GET
/
staking
/
active-stakes
Get Active Stakes
curl --request GET \
--url https://api.copper.co/platform/staking/active-stakesimport requests
url = "https://api.copper.co/platform/staking/active-stakes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.copper.co/platform/staking/active-stakes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.copper.co/platform/staking/active-stakes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.copper.co/platform/staking/active-stakes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.copper.co/platform/staking/active-stakes")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copper.co/platform/staking/active-stakes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"activeStakes": [
{
"activeStake": {
"activeStakedAmount": "<string>",
"canIncreaseStakeAmount": true,
"claimableRewardsAmount": "<string>",
"endTimeSeconds": "<string>",
"pool": {
"extra": {
"activationInputs": {},
"activationStep": {},
"netuid": "<string>",
"neuronFollowees": [
"<string>"
],
"nominateAmount": "<string>",
"swapExtra": {},
"unnominateAmount": "<string>"
},
"poolId": "<string>",
"poolName": "<string>",
"totalBonded": "<string>",
"validatorProviderId": "<string>"
},
"pools": [
{
"extra": {
"activationInputs": {},
"activationStep": {},
"netuid": "<string>",
"neuronFollowees": [
"<string>"
],
"nominateAmount": "<string>",
"swapExtra": {},
"unnominateAmount": "<string>"
},
"poolId": "<string>",
"poolName": "<string>",
"totalBonded": "<string>",
"validatorProviderId": "<string>"
}
],
"readyToRedelegate": true,
"readyToUndelegateStakingPermissions": true,
"readyToUnstake": true,
"readyToUnstakeAt": "<string>",
"requireChillToUnstake": true,
"rewardRate": "<string>",
"rewardsAutoRestake": true,
"rewardsRequireClaim": true,
"stakeAddress": "<string>",
"warning": {
"message": "<string>",
"code": "<string>"
}
},
"activeStakeId": "<string>",
"createdAt": "<string>",
"currency": "<string>",
"depositTargetId": "<string>",
"mainCurrency": "<string>",
"organizationId": "<string>",
"portfolioId": "<string>",
"updatedAt": "<string>"
}
]
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Query Parameters
Was this page helpful?