Returns the index of the transaction within its block