how to use blockchain api