txpool_status
The txpool_status method returns the number of pending and queued transactions in the transaction pool on the Optimism network. This lightweight method provides a quick overview of mempool activity by returning simple counts of transactions in different states. It's perfect for monitoring transaction pool congestion, network activity levels, and determining if there are transactions waiting to be processed without fetching detailed transaction data.
Parameters
This method does not require any parameters.
Return Object
Returns the count of pending and queued transactions as hexadecimal numbers. Pending transactions are ready to be included in the next block, while queued transactions are waiting for their nonce to become valid.
Request Example
Request
Response Example
Response