This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from iotaledger/release/1.1.0
1.1.0
- Loading branch information
Showing
19 changed files
with
1,198 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# coding=utf-8 | ||
from __future__ import absolute_import, division, print_function, \ | ||
unicode_literals | ||
|
||
from iota import * | ||
from iota.adapter.sandbox import SandboxAdapter | ||
|
||
|
||
# Create the API object. | ||
iota =\ | ||
Iota( | ||
# To use sandbox mode, inject a ``SandboxAdapter``. | ||
adapter = SandboxAdapter( | ||
# URI of the sandbox node. | ||
uri = 'https://sandbox.iotatoken.com/api/v1/', | ||
|
||
# Access token used to authenticate requests. | ||
# Contact the node maintainer to get an access token. | ||
auth_token = 'auth token goes here', | ||
), | ||
|
||
# Seed used for cryptographic functions. | ||
# If null, a random seed will be generated. | ||
seed = b'SEED9GOES9HERE', | ||
) | ||
|
||
# Example of sending a transfer using the sandbox. | ||
# For more information, see :py:meth:`Iota.send_transfer`. | ||
# noinspection SpellCheckingInspection | ||
iota.send_transfer( | ||
depth = 100, | ||
|
||
# One or more :py:class:`ProposedTransaction` objects to add to the | ||
# bundle. | ||
transfers = [ | ||
ProposedTransaction( | ||
# Recipient of the transfer. | ||
address = | ||
Address( | ||
b'TESTVALUE9DONTUSEINPRODUCTION99999FBFFTG' | ||
b'QFWEHEL9KCAFXBJBXGE9HID9XCOHFIDABHDG9AHDR' | ||
), | ||
|
||
# Amount of IOTA to transfer. | ||
# This value may be zero. | ||
value = 42, | ||
|
||
# Optional tag to attach to the transfer. | ||
tag = Tag(b'EXAMPLE'), | ||
|
||
# Optional message to include with the transfer. | ||
message = TryteString.from_string('Hello, Tangle!'), | ||
), | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.