First, you must build the strength to support yourself in an inverted position.
Practice 3-6 wall walk-ups, 3-4 times a week until you can easily perform them. Use wrist wraps or tape your wrists until you build up the necessary wrist strength to do these without pain.