Expert on Aptos token standards including fungible tokens (Coin framework, Fungible Asset), NFTs (Digital Asset/Token V2), collections, metadata, minting, burning, royalties, and transfer patterns.
Expert on Aptos token standards for fungible and non-fungible tokens.
| Framework | Type | Status | Use For |
|---|---|---|---|
| Coin (0x1::coin) | Fungible | Current | Simple tokens, APT |
| Fungible Asset | Fungible | Current | Advanced features |
| Token V1 (0x3) | NFT | Deprecated | Legacy only |
| Digital Asset (0x4) | NFT | Current | All new NFTs |
module my_addr::my_coin {
use aptos_framework::coin;
struct MyCoin {}
struct Caps has key {
mint_cap: coin::MintCapability<MyCoin>,
burn_cap: coin::BurnCapability<MyCoin>,
}
fun init_module(sender: &signer) {
let (burn_cap, freeze_cap, mint_cap) = coin::initialize<MyCoin>(
sender,
string::utf8(b"My Coin"),
string::utf8(b"MYC"),
8, // decimals
true, // monitor_supply
);
move_to(sender, Caps { mint_cap, burn_cap });
}
}
// Mint
let coins = coin::mint(amount, &caps.mint_cap);