Get Out Msg Queue Sizes
curl --request GET \
--url https://toncenter.com/api/v2/getOutMsgQueueSizesimport requests
url = "https://toncenter.com/api/v2/getOutMsgQueueSizes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://toncenter.com/api/v2/getOutMsgQueueSizes', 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://toncenter.com/api/v2/getOutMsgQueueSizes",
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://toncenter.com/api/v2/getOutMsgQueueSizes"
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://toncenter.com/api/v2/getOutMsgQueueSizes")
.asString();require 'uri'
require 'net/http'
url = URI("https://toncenter.com/api/v2/getOutMsgQueueSizes")
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{
"ok": true,
"result": {
"@type": "blocks.outMsgQueueSizes",
"shards": [
{
"@type": "blocks.outMsgQueueSize",
"id": {
"@type": "ton.blockIdExt",
"workchain": -1,
"shard": "-9223372036854775808",
"seqno": 51149550,
"root_hash": "aa5DrbypWLx+3hICy5IOusAsMB8LA+JY41tjUtlYVhQ=",
"file_hash": "Yd96kDamNL490591/O2unVWv9FUrkANnso8ZMwEHtqU="
},
"size": 0
},
{
"@type": "blocks.outMsgQueueSize",
"id": {
"@type": "ton.blockIdExt",
"workchain": 0,
"shard": "-9223372036854775808",
"seqno": 56263368,
"root_hash": "jdalpRwHiguMp1Vxij4gWAkdzeIN56M0mfrjb9tVvmY=",
"file_hash": "/j8B/o8axBw0DZOlv1WGqvPh/KgJFeV8S4p3Ai2EDzQ="
},
"size": 0
}
],
"ext_msg_queue_size_limit": 8000,
"@extra": "1755815024.4620872:9:0.8277963175010491"
}
}Blocks
Get Out Msg Queue Sizes
Get info with current sizes of messages queues by shards.
GET
/
getOutMsgQueueSizes
Get Out Msg Queue Sizes
curl --request GET \
--url https://toncenter.com/api/v2/getOutMsgQueueSizesimport requests
url = "https://toncenter.com/api/v2/getOutMsgQueueSizes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://toncenter.com/api/v2/getOutMsgQueueSizes', 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://toncenter.com/api/v2/getOutMsgQueueSizes",
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://toncenter.com/api/v2/getOutMsgQueueSizes"
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://toncenter.com/api/v2/getOutMsgQueueSizes")
.asString();require 'uri'
require 'net/http'
url = URI("https://toncenter.com/api/v2/getOutMsgQueueSizes")
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{
"ok": true,
"result": {
"@type": "blocks.outMsgQueueSizes",
"shards": [
{
"@type": "blocks.outMsgQueueSize",
"id": {
"@type": "ton.blockIdExt",
"workchain": -1,
"shard": "-9223372036854775808",
"seqno": 51149550,
"root_hash": "aa5DrbypWLx+3hICy5IOusAsMB8LA+JY41tjUtlYVhQ=",
"file_hash": "Yd96kDamNL490591/O2unVWv9FUrkANnso8ZMwEHtqU="
},
"size": 0
},
{
"@type": "blocks.outMsgQueueSize",
"id": {
"@type": "ton.blockIdExt",
"workchain": 0,
"shard": "-9223372036854775808",
"seqno": 56263368,
"root_hash": "jdalpRwHiguMp1Vxij4gWAkdzeIN56M0mfrjb9tVvmY=",
"file_hash": "/j8B/o8axBw0DZOlv1WGqvPh/KgJFeV8S4p3Ai2EDzQ="
},
"size": 0
}
],
"ext_msg_queue_size_limit": 8000,
"@extra": "1755815024.4620872:9:0.8277963175010491"
}
}⌘I

