Sokhanetaze80 / sendtrc20.py

1 stars 0 forks source link

Send_bitcoin.py #1

Open Sokhanetaze80 opened 3 days ago

Sokhanetaze80 commented 3 days ago

from bitcoinlib.wallets import Wallet

تعریف جزئیات کیف پول و تراکنش

source_wallet_name = "YourWalletName" # نام کیف پول شما destination_address = "bc1qu2wl5ump22qy0wgs2hvj20rndd5valtnjg3j6p" amount_to_send = 50 # به BTC

بارگذاری کیف پول

wallet = Wallet(source_wallet_name)

ارسال بیت‌کوین

tx = wallet.send_to(destination_address, amount_to_send) print(f"Transaction ID: {tx.txid}")

Sokhanetaze80 commented 19 hours ago

T