diff --git a/examples/tutorials/02_send_data.py b/examples/tutorials/02_send_data.py index d8d3122..aee091a 100644 --- a/examples/tutorials/02_send_data.py +++ b/examples/tutorials/02_send_data.py @@ -2,13 +2,13 @@ from pprint import pprint # Declare an API object -api = Iota('https://nodes.devnet.iota.org:443', devnet=True) +api = Iota('https://nodes.devnet.iota.org:443') # Prepare custom data my_data = TryteString.from_unicode('Hello from the Tangle!') # Generate a random address that doesn't have to belong to anyone -my_address = Address.random() +my_address = Address.random(81) # Tag is optional here my_tag = Tag(b'MY9FIRST9TAG') @@ -22,7 +22,7 @@ ) # Send the transaction to the network -response = api.send_transfer([tx]) +response = api.send_transfer([tx], min_weight_magnitude=9) pprint('Check your transaction on the Tangle!') -pprint('https://utils.iota.org/transaction/%s/devnet' % response['bundle'][0].hash) \ No newline at end of file +pprint('https://explorer.iota.org/legacy-devnet/transaction/%s' % response['bundle'][0].hash) \ No newline at end of file