A castle nut, also called a slotted nut, has slots machined across its upper face. The bolt is drilled through the shank so that, once the nut is tightened, a cotter pin can pass through a slot and the hole and be spread to stop the nut turning. This is a positive lock rather than a friction lock, which is why it appears on wheel hubs, linkages and other safety-critical joints.
Nut and drilled bolt must be matched: the slot has to line up with the hole within a usable range, so washer thickness or nut height may need adjusting. Confirm the thread, the slot style and whether the pin is supplied. Since the joint depends on the pin, specify its material and never leave it off the order.