TON DocsTON Docs
OnboardingNodesApplicationsAPIsContractsSmart contractsTolkTolk languageTVMTON Virtual MachineFoundationsBlockchain foundations

Get outbound message queue size

GET
/api/v2/getOutMsgQueueSize

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.

Authorization

X-API-Key<token>

API key header of the form X-API-Key: <token>, where <token> is the API key. Requests without a key are limited to 1 RPS. Refer to the authentication guide for details.

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/getOutMsgQueueSize"
{  "ok": true,  "result": {    "@type": "blocks.outMsgQueueSizes",    "shards": [      {        "@type": "blocks.outMsgQueueSize",        "id": {          "@type": "ton.blockIdExt",          "workchain": 0,          "shard": "string",          "seqno": 0,          "root_hash": "string",          "file_hash": "string"        },        "size": 0      }    ],    "ext_msg_queue_size_limit": 0  },  "@extra": "string"}