我正在尝试使用Blockcyphers地址端点生成一个使用cUrl的地址。
- https://api.blockcypher.com/v1/eth/main/addrs?token=eth但是它会返回这个错误-- "Endpoint not。请检查您的URL中的排字,并确保您使用的是正确的HTTP方法(GET、POST等)。“
我猜我做了什么错事需要“记号”。
- 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;发布于 2018-10-17 19:08:45
复制到此后- https://stackoverflow.com/questions/38961123/php-curl-post-api
使用Parithiban回答并切换到POST
https://ethereum.stackexchange.com/questions/60763
复制相似问题