chain api: migrate to v2