-
Notifications
You must be signed in to change notification settings - Fork 5
Description
When I create an ETH payment address in my wallet, the addresses are incorrect. When I transfer to another address it shows me this error: invalid amount, receiver list index 0
Code:
$params = array("password" => "Password123");
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.bitaps.com/eth/v1/create/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode($params)
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
print_r(json_decode($response));
echo ("
");
$wallet_id=json_decode($response)->wallet_id;
$params = array("wallet_id"=> $wallet_id);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.bitaps.com/".$currency."/v1/create/wallet/payment/address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode($params)));
$response = curl_exec($curl);
print_r(json_decode($response));
echo ("
");