Fill a 4-inch plastic pot with cactus potting soil. This soil is usually a mix of soil and sand or loam and vermiculite. It needs to be loose, dry and crumbly so it drains well.
Moisten the soil with about a cup of water. Place the pot on a flood tray; empty the flood tray if any of the water drains through.
Poke your finger down into the center of the pot. Drop a dragonfruit or prickly pear seed into the soil and cover it. Add another tablespoon or two of water to the soil.
Cover the pot with plastic wrap to retain warmth and moisture. Mature cacti don't need much moisture, but sprouting seeds need a small, constant water supply.
Place the pot in a sunny window. The pot should get at least six hours of daily sunlight. The temperature around the pot should be 70 to 75 degrees Fahrenheit.
Remove the plastic wrap when the cactus sprouts. Water the sprout once every two weeks with about a cup of water. Empty the flood tray immediately.
Wait 12 to 24 months for your prickly pear or dragonfruit cactus to mature. When flower buds appear, watch for blooming. This will probably happen at night, so keep a close watch.
Gently place pollen from the flowers' stamens on the flowers' centers, using your finger to pollinate them. This should produce fruit.