Skip to content

Problem transferring usdt bep20 #20

@amirho3ein-hn

Description

@amirho3ein-hn

`<?php
error_reporting(E_ALL);

require 'Fenguoz-bsc-php/autoload.php';

$api = new \Binance\NodeApi('https://bsc-dataseed1.binance.org/');
$bnb = new \Binance\Bnb($api);

$config = [
'contract_address' => '0x55d398326f99059ff775485246999027b3197955', // USDT BEP20
'decimals' => 8,
];
$bep20 = new \Binance\BEP20($api, $config);

// Transaction transfer (offline signature)
$from = '2d24*****630f';
$to = '0x080702F42aeEfF08396E8d2EFCeab8c09a13cdE6';
$amount = 1;
$apii = new \Binance\BscscanApi("ZPJP****1E");
$fee = $apii->gasPrice();

$transaction = $bep20->transfer($from, $to, $amount,$fee);
var_dump($transaction);
`

This is my code to transfer usdt bep20, but the output is false

output => bool(false)

@mitmelon can you help in this regard?
@Fenguoz
@mitmelon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions