0

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

  $requesturl='https://api.blockcypher.com/v1/eth/main/addrs?token=eth';
  $ch=curl_init($requesturl);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $cexecute=curl_exec($ch);
  curl_close($ch);

  echo $cexecute;
0

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

Used Parithiban answer and switched GET to POST

| improve this answer | |

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.