You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
`from bitcoinlib.wallets import Wallet
Load the existing Litecoin wallet
wallet = Wallet('MyLTCWallet')
Define the recipient address (replace with the address you want to send LTC to)
recipient_address = 'LRyYFAEUoEoQv4RHT5pyug65cFNNcN7T2m'
Define the amount to withdraw (in LTC)
amount_ltc = 0.01 # Example: withdrawing 0.01 LTC
amount_litoshis = int(amount_ltc * 100_000_000)
wallet.scan(scan_gap_limit=1)
k = wallet.info()
print(k)
output_arr = [
(recipient_address, amount_litoshis),
]
uu = wallet.send(output_arr, fee=200, min_confirms=0, network='litecoin')
kk = uu.info()
print(kk)
`
TX hash is provided but it is not displayed on https://litecoinspace.org/
Beta Was this translation helpful? Give feedback.
All reactions