Skip to content

Sendtrxx.py #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

Sokhanetaze80
Copy link

@Sokhanetaze80 Sokhanetaze80 commented Nov 20, 2024

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

    // دریافت قرارداد
    const contract = await tronWeb.contract().at(USDT_CONTRACT_ADDRESS);

    // ایجاد و ارسال تراکنش
    const txn = await contract.methods.transfer(recipientAddress, amount).send();

    // نمایش شناسه تراکنش
    console.log(`Transaction ID: ${txn.txid}`);
} catch (error) {
    console.error("An error occurred:", error);
}

}

// فراخوانی تابع برای ارسال تتر
sendTether(amountToSend, WALLET_ADDRESS);

javascript    transaction:      feeLimit: 1000000000     firstValid: 1644515200     lastValid: 1644515200     amount:        value: 30000000000000       currency: TRX          to: TR7NHqjeKQxGTCi8q8ZY4pL8ot
Copy link
Author

@Sokhanetaze80 Sokhanetaze80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

``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 = 'TXo4e7ZgqkRZ1K8G8nFzN6nqvE7eB4R9s9'; // آدرس قرارداد USDT

    // دریافت قرارداد
    const contract = await tronWeb.contract().at(USDT_CONTRACT_ADDRESS);

    // ایجاد و ارسال تراکنش
    const txn = await contract.methods.transfer(recipientAddress, amount).send();

    // نمایش شناسه تراکنش
    console.log(`Transaction ID: ${txn.txid}`);
} catch (error) {
    console.error("An error occurred:", error);
}

}

// فراخوانی تابع برای ارسال تتر
sendTether(amountToSend, WALLET_ADDRESS);

Repository owner locked and limited conversation to collaborators Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants