Bitcoin Forum
May 17, 2024, 12:56:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How request api blockchain 2023 ?  (Read 55 times)
azaarps (OP)
Copper Member
Member
**
Offline Offline

Activity: 114
Merit: 39


View Profile
December 12, 2023, 11: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



<?php
$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.
?>
DaveF
Legendary
*
Online Online

Activity: 3486
Merit: 6275


Crypto Swap Exchange


View Profile WWW
December 12, 2023, 11:56:32 AM
Merited by ABCbits (1)
 #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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
hugeblack
Legendary
*
Offline Offline

Activity: 2520
Merit: 3664


View Profile WWW
December 12, 2023, 12:26:20 PM
 #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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!