Skip to main content

Alias Wallet Transaction

Once you have requested funds from the faucet you are ready to send your first transaction from an alias account.

Alias or NFT as wallet

Although this How-To shows how to use an Alias as wallet, the same code can be applied for NFTs with minor changes

Online Faucet

You can request test funds from the Shimmer Testnet Faucet.

Code Example

The following example will:

  1. Create a wallet.
  2. Get Alice's account which was created in the first guide.
  3. Send 1 SMR to an address using the funds owned by the alias. Make sure to update the code sample to send to the address of your choice.
sdk/examples/how_tos/alias_wallet/transaction.rs
loading...

Expected Output

Balance before sending funds from alias: 2000000000
Alias Id: 0x81df8f7e1ad625befebf1456cd0775a124b47a274061010e080bbf7c18593acc
Transaction with custom input: https://explorer.shimmer.network/testnet/transaction/0x0f2f72e09a3a9f9fc8cd1fd4e196c2d198580ec9c873efcf5d6d99809bd9e8f7
Balance after sending funds from alias: 1999000000