List Staking Pools
curl --request POST \
--url https://app.magna.so/api/external/v1/staking/pools \
--header 'Content-Type: application/json' \
--header 'x-magna-api-token: <api-key>' \
--data '
{
"tokenId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cursor": "<string>"
}
'import requests
url = "https://app.magna.so/api/external/v1/staking/pools"
payload = {
"tokenId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cursor": "<string>"
}
headers = {
"x-magna-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-magna-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tokenId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', cursor: '<string>'})
};
fetch('https://app.magna.so/api/external/v1/staking/pools', 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://app.magna.so/api/external/v1/staking/pools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tokenId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'cursor' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-magna-api-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.magna.so/api/external/v1/staking/pools"
payload := strings.NewReader("{\n \"tokenId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"cursor\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-magna-api-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.magna.so/api/external/v1/staking/pools")
.header("x-magna-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tokenId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.magna.so/api/external/v1/staking/pools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-magna-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tokenId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"isProcessed": true,
"result": {
"items": [
{
"id": "a1f0c3b2-1d4e-4c8a-9b7d-2e6f5a0c9d11",
"name": "MAG Staking Pool",
"tokenId": "054d0c03-d20e-477e-81c0-9c2e4453d4a6",
"contractId": "5b0ff445-b293-40d3-81fa-3a753e4259c4",
"status": "ACTIVE",
"totalStaked": "1250000",
"totalRewardsDeposited": "75000",
"periodFinish": "2025-12-31T00:00:00.000Z",
"minimumStakeAmount": "100",
"minimumStakeLength": 2592000,
"stakeWithdrawalDelay": 604800,
"rewardWithdrawalDelay": 0,
"maxApy": "12.5",
"claimNativeTokenFee": "0",
"unstakeNativeTokenFee": "0"
}
],
"total": 1
}
}Staking
List Staking Pools
List the staking pools configured for a token, with their status, totals, and stake/reward parameters.
POST
/
api
/
external
/
v1
/
staking
/
pools
List Staking Pools
curl --request POST \
--url https://app.magna.so/api/external/v1/staking/pools \
--header 'Content-Type: application/json' \
--header 'x-magna-api-token: <api-key>' \
--data '
{
"tokenId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cursor": "<string>"
}
'import requests
url = "https://app.magna.so/api/external/v1/staking/pools"
payload = {
"tokenId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cursor": "<string>"
}
headers = {
"x-magna-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-magna-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tokenId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', cursor: '<string>'})
};
fetch('https://app.magna.so/api/external/v1/staking/pools', 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://app.magna.so/api/external/v1/staking/pools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tokenId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'cursor' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-magna-api-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.magna.so/api/external/v1/staking/pools"
payload := strings.NewReader("{\n \"tokenId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"cursor\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-magna-api-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.magna.so/api/external/v1/staking/pools")
.header("x-magna-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tokenId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"cursor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.magna.so/api/external/v1/staking/pools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-magna-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tokenId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"cursor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"isProcessed": true,
"result": {
"items": [
{
"id": "a1f0c3b2-1d4e-4c8a-9b7d-2e6f5a0c9d11",
"name": "MAG Staking Pool",
"tokenId": "054d0c03-d20e-477e-81c0-9c2e4453d4a6",
"contractId": "5b0ff445-b293-40d3-81fa-3a753e4259c4",
"status": "ACTIVE",
"totalStaked": "1250000",
"totalRewardsDeposited": "75000",
"periodFinish": "2025-12-31T00:00:00.000Z",
"minimumStakeAmount": "100",
"minimumStakeLength": 2592000,
"stakeWithdrawalDelay": 604800,
"rewardWithdrawalDelay": 0,
"maxApy": "12.5",
"claimNativeTokenFee": "0",
"unstakeNativeTokenFee": "0"
}
],
"total": 1
}
}⌘I