1

I'm using cURL to hit the api.coinbase.com API endpoint and the results come back with a CAPTCHA requirement from Cloudflare.

Seems kind of odd to have a CAPTCHA on an endpoint written for scripts/servers to use instead of humans.

How can I hit the API with a script if it keeps requiring me to prove that I'm a human all the time?

Highdel
  • 67
  • 9

1 Answers1

1

... or just download the "official" library (https://developpaper.com/how-to-use-bitcoin-coinbase-wallet-library-to-develop-and-apply-php/)

... and then fix the cert issue that causes it to crash (Argument 1 passed to Coinbase\Wallet\Exception\HttpException::exceptionClass() must be an instance of Psr\Http\Message\ResponseInterface, null given)

That works, too.

Highdel
  • 67
  • 9
  • Kindly elaborate on this. I'm facing the same issue. What exactly is the solution to this? @Highdel – user627341 Mar 16 '22 at 17:33
  • Although that process worked, I eventually wound up making the cURL calls on my own from scratch. Their setup process is ridiculously messed up because there are so many versions (Coinbase, Coinbase Pro, GDAX, Exchange, etc.) and their documentation isn't explicit. However, I found that creating the API key through Coinbase Pro and making the API calls to the address api.exchange.coinbase.com works perfectly, so I skipped all the library stuff and just wrote the functions myself. You would think that Coinbase Pro's API would be api.pro.coinbase.com... you'd be wrong. – Highdel Mar 23 '22 at 15:40