NFT Minter with Signature (Tolk) - Beta Release (0.9.1)
Idea
Enable NFT minting only with project approval (via a backend service).
Contracts
- MinterItem - User deploys this contract with a service signature. Verifies signature and forwards to Minter.
- Minter - Validates sender by recalculating MinterItem address. If it matches, tells Collection to mint NFT. (No signature = no mint. Fake contracts can't pass address verification)
- Collection - Standard NFT collection, deploys the NFT item.
Flow
- Service generates signature (includes price and content of NFT)
→ User deploys MinterItem + pays gas and price (if applicable. Price can be 0) via ton-connect
→ Minter verifies message and send on collection contract
→ NFT minted
Features
- Written in Tolk — the modern language for TON smart contracts
- Secure signature-based minting — users can only mint with valid service signatures
- Node.js example with signing service and REST API
- Full test suite with gas cost analysis
GitHub: https://github.com/open4dev/nft-minter-tolk
Bot example: @open4dev_bot
#TON #NFT #Tolk #SmartContracts #OpenSource
Post #4
525
- 👍 6
- 👏 2