GETGet outbound message queue size

TON Mainnethttps://ton-mainnet.nodit.io/api/v2/getOutMsgQueueSize
CU20

Returns the current size of the outbound message queue for each shard. A growing queue indicates network congestion. If the queue is large, transactions may take longer to process. Monitor this to detect network issues.

Responses
okbooleanrequired

Returns true if the request succeeded; otherwise false. See the error field for details.

@typestring (enum)required

TonLib type identifier for outgoing message queue size responses. Refer to the TonLib type reference for a full list.

shardsobject[]required

Array of per-shard queue sizes. Each entry contains the shard's block identifier and the number of outgoing messages waiting in its queue (integer).

@typestring (enum)required

TonLib type identifier for per-shard queue size entries. Refer to the TonLib type reference for a full list.

idobjectrequired

Full block identifier for the shard.

@typestring (enum)required

TonLib type identifier for full block identifiers. Refer to the TonLib type reference for a full list.

workchainintegerrequired

Workchain ID: -1 for masterchain, 0 for basechain.

shardstringrequired

Shard identifier as a signed 64-bit integer string. Masterchain uses -9223372036854775808.

seqnointegerrequired

Block sequence number within its workchain and shard. For the masterchain (workchain -1), this equals the global block height. For basechain shards (workchain 0), this is the sequence number local to that specific shard, not a global height.

root_hashstringrequired

Root hash of the block. Together with file_hash, uniquely identifies a block.

file_hashstringrequired

Hash of the serialized block file. Together with root_hash, uniquely identifies a block.

sizeintegerrequired

Number of outgoing messages waiting in this shard's queue.

ext_msg_queue_size_limitintegerrequired

Maximum allowed external message queue size before new messages are rejected.

@extrastring

Optional request ID that can be passed in the request and received back in the response. Useful for matching async responses.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v2/getOutMsgQueueSize" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "ok": true,
  "result": {
    "@type": "blocks.outMsgQueueSizes",
    "shards": [
      {
        "@type": "blocks.outMsgQueueSize",
        "id": {
          "@type": "ton.blockIdExt",
          "workchain": -1,
          "shard": "-9223372036854775808",
          "seqno": 107892821,
          "root_hash": "lgIdEhl5ftSjEXCdw2fcr5MN7DO3i+TZ92QyiaVLM3E=",
          "file_hash": "eB72ow0ZxCqKM1l+iaLsC+wvFSqTJmzlcv9aWcTeROE="
        },
        "size": 0
      },
      {
        "@type": "blocks.outMsgQueueSize",
        "id": {
          "@type": "ton.blockIdExt",
          "workchain": 0,
          "shard": "-9223372036854775808",
          "seqno": 112794162,
          "root_hash": "DdpxXpTkytjK/ZxwPgQwg0luJJZNmkV4duZgFQOcQ7M=",
          "file_hash": "j9ZdCxjSyh79dTVRVlHfj/2DuPONBL3KQ5D+vWh9SKA="
        },
        "size": 0
      }
    ],
    "ext_msg_queue_size_limit": 8000
  },
  "@extra": "1795684355:9:15.128"
}