There are several models available for 10-50T and 10-52T Eagle cassettes that are compatible with XD driver bodies.
The PG-1230 cassette is designed for hubs with 10-speed driver bodies. Although it starts with an 11T cog rather than a 10T due to the different driver body standards.
Visit the SRAM Eagle cassette product pages here.
Note: 52T-max Eagle cassettes are only compatible with Eagle AXS rear derailleurs and mechanical Eagle rear derailleurs that have "520%" printed on their inner cage.