Skip to content

Instantly share code, notes, and snippets.

@rohasnagpal
Created October 12, 2022 08:29
Show Gist options
  • Save rohasnagpal/dcec046406da515c4fbd85f895ebd0e9 to your computer and use it in GitHub Desktop.
Save rohasnagpal/dcec046406da515c4fbd85f895ebd0e9 to your computer and use it in GitHub Desktop.
<?php
//Requires libcurl
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_HTTPHEADER => [
"x-api-key: YOUR_API_KEY"
],
CURLOPT_URL => "https://api-eu1.tatum.io/v3/bitcoin/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$error = curl_error($curl);
curl_close($curl);
if ($error) {
echo "cURL Error #:" . $error;
} else {
echo $response;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment