-
`from bitcoinlib.wallets import Wallet Load the existing Litecoin walletwallet = 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) print(k) output_arr = [ uu = wallet.send(output_arr, fee=200, min_confirms=0, network='litecoin') print(kk) ` TX hash is provided but it is not displayed on https://litecoinspace.org/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you look at the output of Transaction.info() / uu.info() you should see: Pushed to network: False By default the send method creates a transaction, verifies it but does not broadcast it to the network. To broadcast you need to specify the broadcast=True in the Wallet's send method:
or use Transaction.send()
Look in the Transaction object for more information, for example:
|
Beta Was this translation helpful? Give feedback.
If you look at the output of Transaction.info() / uu.info() you should see: Pushed to network: False
By default the send method creates a transaction, verifies it but does not broadcast it to the network. To broadcast you need to specify the broadcast=True in the Wallet's send method:
or use Transaction.send()
Look in the Transaction object for more information, for example: