I am trying to generate an address using Blockcyphers Address Endpoint using cUrl.

- https://api.blockcypher.com/v1/eth/main/addrs?token=eth

But it returns this error - "Endpoint not found. Please check your URL for typos and make sure you're using the correct HTTP method (GET, POST, etc)."

Im guessing im doing something wrong where it needs 'token'..

- https://api.blockcypher.com/v1/eth/main/addrs?token=YOURTOKEN

  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

  echo $cexecute;

Duplicate to this post - https://stackoverflow.com/questions/38961123/php-curl-post-api

Used Parithiban answer and switched GET to POST

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.