Skip to content

Instantly share code, notes, and snippets.

@simform-solutions
Created September 20, 2017 07:05
Show Gist options
  • Save simform-solutions/145c1f4e288114b1322d6991d1e36a9a to your computer and use it in GitHub Desktop.
Save simform-solutions/145c1f4e288114b1322d6991d1e36a9a to your computer and use it in GitHub Desktop.
# Takes the prepared transaction data and sends it to the IOTA node for attaching itto the tangle
def send_transfer(prepared_transferes):
print("Sending transfer, this can take a while...")
change_addy = bytes(get_deposit_address())
api = Iota(iota_node, seed)
api.send_transfer(
depth=7,
transfers=prepared_transferes,
change_address=change_addy,
min_weight_magnitude=18
)
print("Transaction compleated!")
# Not yet implemented
def replay_transaction():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment