Shah Newaz
Shah Newaz

Reputation: 11

Coinbase Api Key Authentication error Problem

I'm trying to check my Coinbase API. I have tried making a bunch of different API keys, keep getting the same error:

this is my Code

 <?php

//echo  __DIR__ ;
require_once( __DIR__ . '/CoinBaseApi/vendor/autoload.php');
include "sendMoneyByCB.php";

use Coinbase\Wallet\Client;
use Coinbase\Wallet\Configuration;
use Coinbase\Wallet\Enum\CurrencyCode;
use Coinbase\Wallet\Resource\Transaction;
use Coinbase\Wallet\Value\Money;

$apiKey='safgzsggzsg';
$apiSecret='NTf4n7CsgWSQWqlxzgr1Igrzsggzd99';

$configuration = Configuration::apiKey($apiKey, $apiSecret);
$client = Client::create($configuration);

echo "$configuration";
?>

and the error

{"errors":[{"id":"authentication_error","message":"invalid api key"}]}

Upvotes: 0

Views: 580

Answers (1)

wolfpunkjs
wolfpunkjs

Reputation: 131

Coinbase uses a different API key than Coinbase Pro (GDAX)

Upvotes: 0

Related Questions