Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
const TronWeb = require('tronweb');
// تنظیمات اتصال به شبکه ترون
const tronWeb = new TronWeb({
fullHost: 'https://api.trongrid.io',
privateKey: '90de8d4365da8420391c573dc32909cf17f3dd53ec581251ea13473efa213cf7' // کلید خصوصی شما
});
// آدرس ولت دریافتکننده
const WALLET_ADDRESS = 'TB22QfzxJRm8NPQLmw4BovGF4BEfUNXuHc'; // آدرس ولت مقصد
// مقدار تتر که میخواهید ارسال کنید (در اینجا 30 میلیون USDT)
const amountToSend = 30000000; // مقدار به واحد USDT
async function sendTether(amount, recipientAddress) {
try {
// آدرس قرارداد تتر بر روی شبکه ترون
const USDT_CONTRACT_ADDRESS =
'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t;
// آدرس قرارداد USDT}
// فراخوانی تابع برای ارسال تتر
sendTether(amountToSend, WALLET_ADDRESS);