Token and NFT contracts
Builders scaffolding fungible tokens, NFTs, and DeFi
StxScript ships token, nft, and defi starter templates via stxscript new. They give you a typed starting point for the most common Stacks contract shapes, and compile to the Clarity the ecosystem already expects.
Templates for common shapes
stxscript new --template token | nft | defi lays out a typed starting project instead of a blank file.
Typed maps for balances & ownership
map balances<principal, uint> and map owners<uint, principal> get .get/.set/.delete with type checking.
Readable Clarity output
The emitted contract is idiomatic Clarity your auditor and the ecosystem tooling read without translation.
scaffold
$ stxscript new my-nft --template nft $ cd my-nft $ stxscript build contracts/my-nft.stx my-nft.clar