A method is presented for the measurement of the phase gradient of a wavefront by tracking the relative motion of speckles in projection holograms as a sample is scanned across the wavefront. By removing the need to obtain an undistorted reference image of the sample, this method is suitable for the metrology of highly divergent wavefields. Such wavefields allow for large magnification factors that, according to current imaging capabilities, will allow for nanoradian angular sensitivity and nanoscale sample projection imaging. Both the reconstruction algorithm and the imaging geometry are nearly identical to that of ptychography, except that the sample is placed downstream of the beam focus and that no coherent propagation is explicitly accounted for. Like other X-ray speckle tracking methods, it is robust to low-coherence X-ray sources, making it suitable for laboratory-based X-ray sources. Likewise, it is robust to errors in the registered sample positions, making it suitable for X-ray free-electron laser facilities, where beam-pointing fluctuations can be problematic for wavefront metrology. A modified form of the speckle tracking approximation is also presented, based on a second-order local expansion of the Fresnel integral. This result extends the validity of the speckle tracking approximation and may be useful for similar approaches in the field. research papers J. Appl. Cryst. (2020). 53, 760-780 Andrew J. Morgan et al. Ptychographic X-ray speckle tracking 761 research papers J. Appl. Cryst. (2020). 53, 760-780 Andrew J. Morgan et al. Ptychographic X-ray speckle tracking 763 ! ; ð64Þ research papers J. Appl. Cryst. (2020). 53, 760-780 Andrew J. Morgan et al. Ptychographic X-ray speckle tracking 773