Skip to main content

Destroy Alias Output

You can destroy an alias output by ID.

Example Code

The following example will:

  1. Instantiate a Wallet, get Alice's Account which was created in the first guide.
  2. Destroy an Alias Output transaction by calling the Account.burn() function.
sdk/examples/how_tos/alias/destroy.rs
loading...
  1. Retry the Transaction until included.
sdk/examples/how_tos/alias/destroy.rs
loading...

Full Example Code

sdk/examples/how_tos/alias/destroy.rs
loading...

Expected Output

Aliases BEFORE destroying (142):
[
...
]
Sending the destroy-alias transaction...
Transaction sent: 0x829a635a7edc28bee4d4a1019b7b1f1bedec11d83c118b6f2a7904590f4bb458
Block included: https://explorer.shimmer.network/testnet/block/0xd455b8132c0b109dd0b2d1d157c6b1d7275318f69dcf56f536a7b14d9fa17bb3
Destroyed alias 0xf708a29e9619e847916de76c2e167e87a704c235dcbd7cda018865be7f561b5a
Aliases AFTER destroying (141):
[
...
]