add chain api library