Chain bitcoin API interface in PHP