Create an Account
An Account
is a fundamental component of the protocol that allows users
to manage their digital assetsDigital possessions or resources, such as cryptocurrencies or tokens. and interact with the network. It serves as a container for holding tokens and other
assets, enabling users to send and receive transactions, and engage in various activities within the IOTA ecosystem.
Accounts and Addresses
The SDK supports a multi-account approach and a single-account approach.
Example Code
- Rust
- Typescript (Node.js)
- Python
- Instantiate a
Wallet
and use it to store the Stronghold mnemonic.
- Create an
Account
with the alias "Alice" by calling theWallet.create_account()
function.
- Instantiate a
Wallet
and use it to store the Stronghold mnemonic.
- Create an
Account
with the alias "Alice" by calling theWallet.createAccount()
function.
- Instantiate a
Wallet
and use it to store the Stronghold mnemonic.
- Create an
Account
with the alias "Alice" by calling theWallet.create_account()
function.
Full Example Code
- Rust
- Typescript (Node.js)
- Python
sdk/examples/how_tos/accounts_and_addresses/create_account.rs
loading...
bindings/nodejs/examples/how_tos/accounts_and_addresses/create-account.ts
loading...
bindings/python/examples/how_tos/accounts_and_addresses/create_account.py
loading...
Expected Output
Account created: Alice