iexbase / tron-api

A PHP API for interacting with Tron (TRX)
https://iexbase.github.io/tron-api/
MIT License
405 stars 287 forks source link

how can i send a usdt to a address #145

Open XiaomiYe opened 1 year ago

XiaomiYe commented 1 year ago

我怎么发起usdt转帐

kendol07 commented 1 year ago

$tron->setAddress('your wallet'); $tron->setPrivateKey('private key'); $transfer = $tron->contract('TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t')->setFeeLimit(15); //fee limit 15 trx o more AND //TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t tether contract address $result=$transfer->transfer('address To', 'USDT amount');