TTHUGS - Game
  • GETTING STARTED
    • The initial NFT collection
    • Game Zombie World
      • Introduction Video
    • Platforms
    • Roadmap
    • Development Team
    • Official Links
  • GUIDES
    • Connect your Thug
      • Skins
    • NFTs Weapons
      • List of weapons
      • Weapons Rarity
      • Weapons Drop Rate
      • Weapons Evolution
    • Equipment
    • Turrets & Traps
    • Currencies & Loots
  • TOKENOMICS
    • Blockchain
    • Game Loop
    • Smart Contract Doc
    • Token
  • SUPPORT
    • FAQ
Powered by GitBook
On this page
  1. TOKENOMICS

Smart Contract Doc

PreviousGame LoopNextToken

Last updated 2 months ago

Introduction

The MintNFT smart contract is an ERC-721A-based contract optimized for gas-efficient minting of NFTs. This contract is designed to work on the Immutable X blockchain, allowing users to mint NFTs in batches of three per transaction. It ensures proper handling of minting, fund management, and metadata storage.

Contract Address

Network: Immutable X Testnet Address: 0x9680750568C9a14cEEAa5A3b8ac9E70331c61FC1 Explorer: View on Immutable X Explorer ( link : )

Usage Instructions

Users can interact with the smart contract through:

- Immutable X SDK – Using the Immutable X SDK to call contract methods.

- Smart Contract Direct – Interaction via standard Ethereum transactions.

- DApp Frontend – If a user interface is available, it will enable simplified interaction.

Features

-Batch Minting: Each minting transaction issues 3 NFTs to the user.

-Fixed Minting Price: The cost per mint (3 NFTs) is set at 0.018 ETH.

-Owner-Only Fund Management: Only the contract owner can withdraw collected funds.

-Dynamic Metadata Management: The contract allows the owner to update the base URI for NFT metadata.

Smart Contract Details

-Blockchain: Immutable X Testnet

-Token Standard: ERC-721A

-Minting Cost: 0.018 ETH per mint (3 NFTs)

-Owner Functions:

> setBaseURI(string memory _baseTokenURI): Updates the metadata base URI.

> withdraw(): Allows the owner to withdraw contract funds.

- Minting Function:

> mint() payable: Users can mint 3 NFTs per transaction by paying the required ETH.

Minting NFTs

To mint NFTs, a user sends 0.018 ETH to the contract by calling the mint() function. This will mint exactly 3 NFTs to their wallet.

https://explorer.testnet.immutable.com/address/0x9680750568C9a14cEEAa5A3b8ac9E70331c61FC1?tab=contract