Updating bit coin to use blockchain api