Fungible Token
Contract Summary
A complete implementation of a SIP-010 compliant fungible token called "Clarity Coin" with standard transfer, balance query, and minting capabilities. This contract serves as a template for creating custom fungible tokens on the Stacks blockchain.
What this contract does:
Implements the full SIP-010 fungible token standard trait
Creates a fungible token with no maximum supply
Provides standard token metadata (name, symbol, decimals, URI)
Enables token transfers between principals with optional memo field
Allows the contract owner to mint new tokens
Tracks balances and total supply automatically
Uses 6 decimal places for token precision (micro-units)
What developers can learn:
How to implement the SIP-010 fungible token trait correctly
Defining and working with fungible tokens using
define-fungible-tokenBuilt-in Clarity functions for token operations (
ft-mint?,ft-transfer?,ft-get-balance,ft-get-supply)Owner-only access control patterns for privileged operations
Handling optional parameters (memo field) with
matchToken decimal precision and display conventions
Preventing unauthorized transfers with sender validation
Returning standardized responses that comply with trait requirements
Using constants for immutable contract configuration
Filter annotations for security analysis (
#[filter])
Was this helpful?