Skip to main content

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

Example Code

  1. Instantiate a Wallet and use it to store the Stronghold mnemonic.
sdk/examples/how_tos/accounts_and_addresses/create_account.rs
loading...
  1. Create an Account with the alias "Alice" by calling the Wallet.create_account() function.
sdk/examples/how_tos/accounts_and_addresses/create_account.rs
loading...

Full Example Code

sdk/examples/how_tos/accounts_and_addresses/create_account.rs
loading...

Expected Output

Account created: Alice