Author

Topic: How request api blockchain 2023 ? (Read 74 times)

legendary
Activity: 2646
Merit: 3911
December 12, 2023, 07:26:20 AM
#3
You need to create a callback.php file and then log in to your blockchain account, Fill out form and click “Create New API Key Now” and then continue what you need ----> here https://api.blockchain.com/v3/, after that updat index.php and callback.php
blockchair.com has a better API
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
December 12, 2023, 06:56:32 AM
#2
Are you looking to try to scam again?






Did you follow this guide: https://exchange.blockchain.com/api/#introduction

You have be logged into your blockchain.com account before you can request your API key.

Also, are you locked into blockchain.com for any reason? There are a lot of other services that also allow API access.

-Dave
copper member
Activity: 123
Merit: 39
December 12, 2023, 06:46:43 AM
#1
The link does not work to request the API   Cry https://www.blockchain.com/api/request


I want to apply to api

is there a solution



$api_key = "api"; /your api
$xpub = "xpub"; /your xpub
$secret = "your_secret"; //this can be anything you want
$rootURL = "your site"; $orderID = uniqid();  /your web site
$callback_url = $rootURL."/callback.php?invoice=".$orderID."&secret=".$secret;
$receive_url = "https://api.blockchain.info/v2/receive?key=".$api_key."&xpub=".$xpub."&callback=".urlencode($callback_url);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, $receive_url);
$ccc = curl_exec($ch);
$json = json_decode($ccc, true);
$payTo = $json['address'];
echo $payTo; // The API places you where your random address will appear.
?>
Jump to: