Types
Non-Fungible Tokens
function mint_non_fungible_token(name, to_account_id: byte_array) {
val spec = yours.token_info(
project = "Cat Dapp",
collection = "Cats Collection",
name,
modules = [rell.meta(mint_non_fungible_token).module_name]
);
val token = yours.create_token(spec);
val account = accounts.account @ { .id == to_account_id };
yours.mint(token, yours.balance_info(account, 1L));
}mint_non_fungible_token("Bengal", x"DEADBEEF");
mint_non_fungible_token("Maine Coon", x"DEADBEEF");
mint_non_fungible_token("Ragdoll", x"DEADBEEF");Project
Collection
Token ID
Token Name
Token Balance
1
1
1
Semi-Fungible Tokens
Project
Collection
Token ID
Token Name
Token Balance
2
1
4
Last updated