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
The SDK supports a multi-account approach and a single-account approach.
Code Example
The following example will:
- Create a wallet.
- Get Alice's account which was created in the first guide.
- Generate an address in Alice's account.
- Rust
- Nodejs
- Python
sdk/examples/how_tos/accounts_and_addresses/create_address.rs
loading...
bindings/nodejs/examples/how_tos/accounts_and_addresses/create-address.ts
loading...
bindings/python/examples/how_tos/accounts_and_addresses/create_address.py
loading...
Expected Output
Generated address: rms1qrjahvcjhfl668vegm8vej48prsdh9n4rwpzr33j60m6vvux5yjhg2w9hq3