使用coinbase php库将比特币发送到外部将返回422::无效金额

使用coinbase php库将比特币发送到外部将返回422::无效金额,php,codeigniter,coinbase-api,coinbase-php,Php,Codeigniter,Coinbase Api,Coinbase Php,我试图使用库将0.0001比特币发送到外部BTC地址。我有一个基于CodeIgniter的网站,生成比特币地址,检索余额都很好。但不知何故,我似乎无法使硬币提取工作。下面是我的代码 $configuration = \Coinbase\Wallet\Configuration::apiKey($apiKey, $apiSecret); $client = Coinbase\Wallet\Client::create($configuration); $accountId = $this->

我试图使用库将0.0001比特币发送到外部BTC地址。我有一个基于CodeIgniter的网站,生成比特币地址,检索余额都很好。但不知何故,我似乎无法使硬币提取工作。下面是我的代码

$configuration = \Coinbase\Wallet\Configuration::apiKey($apiKey, $apiSecret);
$client = Coinbase\Wallet\Client::create($configuration);
$accountId = $this->getCoinbaseAccountid($coinid);
$account = $client->getAccount($accountId);
$coinsymbol = $this->CI->common_library->getCoinSymbol($coinid);//returns BTC
$withdrawAmount = new Coinbase\Wallet\Value\Money($amountTosend, $coinsymbol);
$transaction = Coinbase\Wallet\Resource\Transaction::send([
  'toBitcoinAddress' => $sendtoAddress,
  'amount' => $withdrawAmount,
  'description' => $comment,
  'fee' => '0.00005' // only required for transactions under BTC0.0001
]);
try {
  $response = $client->createAccountTransaction($account, $transaction);
} catch (Coinbase\Wallet\Exception\HttpException $ex) {
  $error = $ex->getResponse()->getStatusCode() . '::' . $ex->getError();
  $errorcase = 1;
  $this->log_ipn_results(FALSE, $error);
}
在我的日志文件中,我得到以下错误。我仍然找不到这个错误,即使在

422::无效金额


最低取款金额高于0.0001 BTC。

最低取款金额是多少?你能分享一个相同的链接吗?如果你在线搜索,结果是Coinbase动态更改了最低取款金额。现在在我的帐户上,它说0.0001是最低取款金额,所以我不对,错误是指逗号而不是点,还是其他什么?实际上我现在正在测试。这就是我试图发送0.0001 BTC的原因。在coinbase上,你在哪里找到这些限制?我在网站上尝试将导入设置为0.0001以下,它说“最低要求为0.0001”