Skip to content

Problems making transfers in ETH #4

Description

@lacchain-stamping

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 ("

");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions