What are the things required by a person to become a wali of Allah?

Abstinence from sin, and performance of obligations is the beginning. The more abstinence you have the closer you will come to being of the awliyaa of Allah.