Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python getting started #1045

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bindings/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ that connects to the [Shimmer Testnet](https://api.testnet.shimmer.network) usin
to safely store a seed derived from a mnemonic, and then print the account's information.

```python
from iota_sdk import Wallet, StrongholdSecretManager, CoinType
from iota_sdk import Wallet, StrongholdSecretManager, CoinType, ClientOptions

# This example creates a new database and account

wallet_options = {
'nodes': ['https://api.testnet.shimmer.network'],
}
client_options = ClientOptions(nodes=['https://api.testnet.shimmer.network'])

secret_manager = StrongholdSecretManager("wallet.stronghold", "some_hopefully_secure_password")
secret_manager = StrongholdSecretManager(
"wallet.stronghold", "some_hopefully_secure_password")

wallet = Wallet('./alice-walletdb', wallet_options, coin_type=CoinType.SHIMMER, secret_manager)
wallet = Wallet('./alice-walletdb', client_options,
CoinType.SHIMMER, secret_manager)

# Store the mnemonic in the Stronghold snapshot. This only needs to be done once
account = wallet.store_mnemonic("flame fever pig forward exact dash body idea link scrub tennis minute " +
"surge unaware prosper over waste kitten ceiling human knife arch situate civil")
"surge unaware prosper over waste kitten ceiling human knife arch situate civil")

account = wallet.create_account('Alice')
print(account.get_metadata())
Expand Down
Loading