Skip to content

Commit

Permalink
Add info on Next Asset ID (#6363)
Browse files Browse the repository at this point in the history
This is needed for creating fungible assets on Polkadot Asset Hub
  • Loading branch information
DrW3RK authored Nov 4, 2024
1 parent b0e3c86 commit a4981d5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Binary file modified docs/assets/asset-hub/hub-asset-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/asset-hub/hub-asset-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/learn/learn-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ This pallet enables fees to be paid in any asset that has corresponding liquidit
AssetHub. Learn more about asset conversion on AssetHub,
[including guides on how to use it here.](./learn-asset-conversion-assethub.md)

## Creation and Management
## Create and Manage Assets

:::info Walk-through video tutorial about creating assets

Expand Down
12 changes: 9 additions & 3 deletions docs/learn/learn-guides-assets-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ For additional background on the Asset Hub check out
Before minting assets on the Asset Hub, we recommend that you try out this tutorial on Westend Asset
Hub, which is a system parachain on Westend test network. The WND tokens (Westies) can be teleported
from Westend to Westend Asset Hub, are available for free through a
[faucet](./learn-DOT.md#getting-tokens-on-the-westend-testnet).
[faucet](https://faucet.polkadot.io/).

**The images in the guides below are for Polkadot, but they also apply to Kusama.**

Expand All @@ -52,15 +52,21 @@ Assuming you have the required balance on your Asset Hub account, the following
let you successfully create an asset on the Asset Hub

- Access the Asset Hub through [Polkadot-JS UI](https://polkadot.js.org/apps/#/explorer).
- Check the next available Asset ID. This can be queried on-chain by navigating to Developer > Chain
State > Storage and then `assets.nextAssetId()`.

![Query AssetId](../assets/asset-hub/hub-asset-4.png)

- Navigate to Network > Assets.

![Navigate to Assets page](../assets/asset-hub/hub-asset-0.png)

- Click on the create button and you will be presented with a pop-up window. Choose the creator
account, name of the asset to be displayed on the Asset Hub, the asset's symbol, number of
decimals for the asset, the minimum balance required to hold this asset on an Asset Hub account
and the most important field of your asset - the unique asset ID. The UI would not let you enter
an ID that has already been taken. After all the details are entered, click on the next button.
and the most important field of your asset - the unique asset ID. This has to be the value
returned by the `assets.nextAssetId()` query shown earlier. After all the details are entered,
click on the next button.

![Add Asset Metadata](../assets/asset-hub/hub-asset-1.png)

Expand Down

0 comments on commit a4981d5

Please sign in to comment.