Upgrade chain api