Add chain to the api