num_unconfirmed_txs - Cosmos
num_unconfirmed_txs. Track the number of unconfirmed transactions
num_unconfirmed_txs - Cosmos [Value: 20CU]
Retrieves the number of unconfirmed transactions
Use cases
- Monitor the number of unconfirmed transactions
- Estimate transaction backlog and processing time
- Evaluate network congestion for pending transactions
Constraints
- Real-time data; can change rapidly
- May not provide transaction details
- Network issues could delay response accuracy
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --location 'https://cosmos-hub.drpc.org' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "num_unconfirmed_txs",
"params": [],
"id": 1
}'
Response
200
{
"jsonrpc": "2.0",
"result": {
"n_txs": 3,
"total": 5,
"total_bytes": 2048
},
"id": 1
}
Request params
idinteger
jsonrpcstring
methodstring
Response
200
The result object containing details about the number of unconfirmed transactionsResponse params
object
idinteger
jsonrpcstring
resultobject
The result object containing details about the number of unconfirmed transactions in the node's mempool.
object
n_txsinteger
The total number of unconfirmed transactions in the node's mempool.
totalinteger
The total size (in bytes) of all unconfirmed transactions in the mempool.
txsarray
An array of unconfirmed transactions currently in the mempool.