Skip to main content

Create an Address

After you have created an account, you have a single address in the account. But you can generate more addresses.

Account Approaches

Code Example

The following example will:

  1. Create a wallet.
  2. Get Alice's account which was created in the first guide.
  3. Generate an address in Alice's account.
sdk/examples/how_tos/accounts_and_addresses/create_address.rs
loading...

Expected Output

Generated address: rms1qrjahvcjhfl668vegm8vej48prsdh9n4rwpzr33j60m6vvux5yjhg2w9hq3