getrawmempool with mempool_sequence.
getrawmempool
mempool_sequence
Readonly
An unsigned 64-bit counter, as in the ZMQ sequence topic's mempool events.
sequence
The txids in the mempool.
getrawmempoolwithmempool_sequence.