我正在尝试使用coinpayments API创建LTCT提款 这段PHP代码
我尝试使用CreateWithdraw方法和ConvertCoins
$amount = (float)$total; // in usd
$currency1 = 'LTCT';
$add_tx_fee = 0; // 0 receiver pays for transaction charge
$currency2 = 'USD';
$address_to_send = trim($user->coinpayments_wallet_address);
$auto_confirm = 0;
$fields = array( "amount" => $amount,
"currency" => $currency1,
"currency2" => $currency2,
// "add_tx_fee" => $add_tx_fee,
"address" => $address_to_send,
"auto_confirm" => $auto_confirm, // set to 1 withdrawal will complete without email confirmation
);
$result = $cps->CreateWithdrawal($fields);
// this doesn't work also. It throws 'Conversion not possible error message'
//$result = $cps->ConvertCoins($amount, 'BTC', $currency2, $address_to_send);
但是我收到以下错误消息->
数组:2 [▼
“错误” =>“交易值超出了每个TX的限制!”
“结果” => []
但是我试图只拿到5美元之类的小笔钱。那怎么了?
我上周做了一些测试,并且在ltct和美元之间的转换方面工作得很好。
有帮助吗?谢谢