Closed sunujacob closed 4 years ago
$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); $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); }
This is code i use. I get below error.
422::Invalid amount
Hi, we are closing out PRs + Issues as this project is being archived.
This is code i use. I get below error.