Ongoing Undelegations
The experimental::staking::query::ongoing_undelegations method returns information about undelegations in progress. Currently Cosmos/Tendermint coins are supported.
Arguments
| Structure | Type | Description |
|---|---|---|
| coin | string | the coin being staked |
| info_details | object | A standard StakingInfoDetails object. |
📌 Examples
Tendermint Command
POST experimental::staking::query::ongoing_undelegations
{
"userpass": "RPC_UserP@SSW0RD",
"method": "experimental::staking::query::ongoing_undelegations",
"mmrpc": "2.0",
"params": {
"coin": "IRIS",
"info_details": {
"type": "Cosmos",
"limit": 20,
"page_number": 1
}
}
} curl --url "http://127.0.0.1:7783" --data '{
"userpass": "RPC_UserP@SSW0RD",
"method": "experimental::staking::query::ongoing_undelegations",
"mmrpc": "2.0",
"params": {
"coin": "IRIS",
"info_details": {
"type": "Cosmos",
"limit": 20,
"page_number": 1
}
}
}' import requests
import json
url = "http://127.0.0.1:7783"
payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "experimental::staking::query::ongoing_undelegations",
"mmrpc": "2.0",
"params": {
"coin": "IRIS",
"info_details": {
"type": "Cosmos",
"limit": 20,
"page_number": 1
}
}
}
response = requests.post(url, json=payload)
print(json.dumps(response.json(), indent=2)) const payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "experimental::staking::query::ongoing_undelegations",
"mmrpc": "2.0",
"params": {
"coin": "IRIS",
"info_details": {
"type": "Cosmos",
"limit": 20,
"page_number": 1
}
}
};
const response = await fetch("http://127.0.0.1:7783", {
method: "POST",
body: JSON.stringify(payload),
});
console.log(await response.json()); <?php
$payload = <<<'JSON'
{
"userpass": "RPC_UserP@SSW0RD",
"method": "experimental::staking::query::ongoing_undelegations",
"mmrpc": "2.0",
"params": {
"coin": "IRIS",
"info_details": {
"type": "Cosmos",
"limit": 20,
"page_number": 1
}
}
}
JSON;
$ch = curl_init("http://127.0.0.1:7783");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
echo $response; package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
payload := []byte(`{"userpass":"RPC_UserP@SSW0RD","method":"experimental::staking::query::ongoing_undelegations","mmrpc":"2.0","params":{"coin":"IRIS","info_details":{"type":"Cosmos","limit":20,"page_number":1}}}`)
resp, err := http.Post("http://127.0.0.1:7783", "application/json", bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
} require 'net/http'
require 'json'
require 'uri'
uri = URI("http://127.0.0.1:7783")
payload = {
"userpass": "RPC_UserP@SSW0RD",
"method": "experimental::staking::query::ongoing_undelegations",
"mmrpc": "2.0",
"params": {
"coin": "IRIS",
"info_details": {
"type": "Cosmos",
"limit": 20,
"page_number": 1
}
}
}
response = Net::HTTP.post(uri, payload.to_json, 'Content-Type' => 'application/json')
puts JSON.pretty_generate(JSON.parse(response.body)) Show Response
Response
{
"mmrpc": "2.0",
"result": {
"ongoing_undelegations": [
{
"validator_address": "iva1qq93sapmdcx36uz64vvw5gzuevtxsc7lcfxsat",
"entries": [
{
"creation_height": 29732238,
"completion_datetime": "2025-05-12T10:20:27.498461529Z",
"balance": "7.77"
}
]
}
]
},
"id": null
} Error responses
Show Error Responses
InvalidRequest (unsupported coin type)
{
"mmrpc": "2.0",
"error": "Error parsing request: unknown variant `Qtum`, expected `Cosmos`",
"error_path": "dispatcher",
"error_trace": "dispatcher:122]",
"error_type": "InvalidRequest",
"error_data": "unknown variant `Qtum`, expected `Cosmos`",
"id": null
}NoSuchCoin (coin not yet active)
{
"mmrpc": "2.0",
"error": "No such coin IRIS",
"error_path": "lp_coins",
"error_trace": "lp_coins:5218] lp_coins:5032]",
"error_type": "NoSuchCoin",
"error_data": {
"coin": "IRIS"
},
"id": null
}