The getTransactionIndex Method
This method returns the position of the transaction specified by target in the queue. It specifies the number of transactions ahead of target. It returns 0 if the transaction is at the top of the queue, and -1 if target is not on the queue.