Add ChainProvider

I've tried in a project and it works, but maybe I have left something out.