Hedera
  • Welcome to Hedera — let’s build the future
  • Getting Started
    • Environment Setup
    • Web2 Developers
      • Transfer HBAR
      • Create a Token
      • Create a Topic
    • EVM Developers
      • Deploy a Contract
  • Tutorials
    • Smart Contracts
      • How to Mint & Burn an ERC-721 Token Using Hardhat and Ethers (Part 1)
      • How to Set Access Control, a Token URI, Pause, and Transfer an ERC-721 Token Using Hardhat (Part 2)
      • How to Upgrade an ERC-721 Token with OpenZeppelin UUPS Proxies and Hardhat (Part 3)
      • How to Verify a Smart Contract on HashScan
      • Deploy a Smart Contract Using Remix
      • Deploy a Smart Contract Using Hardhat and Hiero JSON-RPC Relay
      • Deploy Your First Smart Contract
      • Deploy a Contract Using the Hedera Token Service
      • Send and Receive HBAR Using Solidity Smart Contracts
      • Deploy By Leveraging Ethereum Developer Tools On Hedera
      • Deploy a Subgraph Using The Graph and Hedera JSON-RPC Relay
      • Deploy Smart Contracts on Hedera Using Truffle
      • The Power of Native Hedera Tokens as ERC-20 Tokens: A step-by-step guide
      • HTS x EVM - Part 1: How to Mint NFTs
      • HTS x EVM - Part 2: KYC & Update
      • HTS x EVM - Part 3: How to Pause, Freeze, Wipe, and Delete NFTs
      • Hedera Smart Contracts Workshop
        • Setup
        • Solidity
        • Hedera SDK JS
        • Hardhat and EthersJs
        • Outro
      • Foundry
        • How to Setup Foundry and Write a Basic Unit Test
        • How to Deploy and Verify a Hedera Smart Contract with Foundry
        • How to Test A Solidity Event
        • How to Fork Testnet on Latest Block
    • Consensus
      • Submit Your First Message
      • Submit Message to Private Topic
      • Query Messages with Mirror Node
    • Tokens
      • Create and Transfer Your First NFT
      • Create and Transfer Your First Fungible Token
      • Create and Transfer an NFT using a Solidity Contract
      • Structure Your Token Metadata Using JSON Schema V2
      • Hedera Token Service - Part 1: How to Mint NFTs
      • Hedera Token Service - Part 2: KYC, Update, and Scheduled Transactions
      • Hedera Token Service - Part 3: How to Pause, Freeze, Wipe, and Delete NFTs
      • Create Your First Frictionless Airdrop Campaign
    • Local Node
      • How to Run Hedera Local Node in a Cloud Development Environment (CDE)
        • Run a Local Node in Gitpod
        • Run a Local Node in Codespaces
      • How to Set Up a Hedera Local Node
      • Set Up a Hedera Local Node using the NPM CLI
    • More Tutorials
      • Create and Fund Your Hedera Testnet Account
      • How to Create a Personal Access Token (API Key) on the Hedera Portal
      • How to Auto-Create Hedera Accounts with HBAR and Token Transfers
      • How to Configure a Mirror Node and Query Data
      • How to Generate a Random Number on Hedera
      • Get Started with the Hedera Consensus Service Fabric Plugin
        • Virtual Environment Setup
      • Schedule Your First Transaction
      • How to Connect to Hedera Networks Over RPC
        • Configuring Hashio RPC endpoints
        • Configuring Hiero JSON-RPC Relay endpoints
        • Configuring Validation Cloud RPC endpoints
      • JavaScript Testing
      • Create a Hedera DApp Integrated with WalletConnect
      • How to Connect MetaMask to Hedera
    • Demo Applications
    • Starter Projects
    • Building on Hedera (course)
  • Networks
    • Mainnet
      • Mainnet Accounts
      • Mainnet Consensus Nodes
        • Node Requirements
          • FAQ
      • Fees
        • Transaction Records
    • Testnets
      • Testnet Accounts
      • Testnet Consensus Nodes
    • Localnet
      • Single Node Configuration
      • Multinode Configuration
    • Network Explorers and Tools
    • Release Notes
      • Consensus Node
      • Hedera Mirror Node
  • Core Concepts
    • Accounts
      • Account Creation
      • Auto Account Creation
      • Account Properties
    • Keys and Signatures
    • Schedule Transaction
    • Smart Contracts
      • Understanding Hedera's EVM Differences and Compatibility
        • For EVM Developers Migrating to Hedera
          • Accounts, Signature Verification & Keys (ECDSA vs. ED25519)
          • JSON-RPC Relay and EVM Tooling
          • Token Management with Hedera Token Service
          • Decimal Handling (8 vs. 18 Decimals)
          • Handling HBAR Transfers in Contracts
        • For Hedera-Native Developers Adding Smart Contract Functionality
          • Integrating ED25519 Accounts and Advanced Features Into Smart Contracts
          • JSON-RPC Relay and State Queries
          • Extending Token Management with Smart Contracts
      • Creating Smart Contracts
      • Compiling Smart Contracts
      • System Smart Contracts
        • Hedera Account Service
        • Hedera Schedule Service
      • Gas and Fees
      • JSON-RPC Relay
      • Deploying Smart Contracts
      • Smart Contract Addresses
      • Verifying Smart Contracts
      • Smart Contract Traceability
      • Tokens Managed by Smart Contracts
        • ERC-20 (Fungible Tokens)
        • ERC-721 (Non-Fungible Token)
        • ERC-3643 Real World Assets (RWA)
        • ERC-1363 (Payable Tokens)
        • Hedera Token Service System Contract
      • Wrapped HBAR (WHBAR)
      • Smart Contract Rent
      • Smart Contract Security
      • EVM Archive Node Queries
    • Tokens
      • Tokenization on Hedera
      • Hedera Token Service (HTS) Native Tokenization
        • Token Types and ID Formats
        • Token Properties
        • Token Creation
        • Custom Fee Schedule
        • Token Airdrops
      • ERC/EVM-Compatible Tokenization
      • Hybrid (HTS + EVM ) Tokenization
    • Staking
      • Staking Program
      • Stake HBAR
    • Hashgraph Consensus Algorithm
      • Gossip About Gossip
      • Virtual Voting
    • Transactions and Queries
      • Transaction Properties
    • State and History
    • Mirror Nodes
      • Hedera Mirror Node
      • One Click Mirror Node Deployment
      • Run Your Own Mirror Node
        • Run Your Own Mirror Node with Google Cloud Storage (GCS)
        • Run Your Mirror Node with Amazon Web Services S3 (AWS)
  • Open Source Solutions and Integrations
    • AI Studio on Hedera
      • ElizaOS Plugin for Hedera
      • Hedera AI Agent Kit
      • MCP Server
      • OpenConvAI
    • AI Tools for Developers
      • Hedera Hivemind
      • Kapa AI
    • Asset Tokenization Studio (ATS)
      • Web User Interface (UI)
      • Frequently Asked Questions (FAQs)
    • HashioDAO
      • Governance Token DAO
      • NFT DAO
      • Multisig DAO
      • DAO Proposals
      • Local Environment Setup
    • Hedera CLI
    • Hedera Contract Builder
    • Hedera Custodians Library
      • How to use it
    • Hedera Developers Code Repository
    • Hedera Developer Playground
    • Hedera Wallet Snap By MetaMask
      • Hedera Wallet Snap Documentation
      • Tutorial: MetaMask Snaps – What Are They and How to Use Them
    • Interoperability and Bridging
      • LayerZero
    • NFT Studio
      • Airdrop List Verifier
      • Metadata Validator
      • NFT Rarity Inspector
      • NFT Token Holders List Builder
      • NFT Risk Calculator
      • Token Balance Snapshot
      • Hedera NFT SDK
    • Oracle Networks
      • Chainlink Oracles
      • Pyth Oracles
      • Supra Oracles
    • Stablecoin Studio
      • Core Concepts
      • Web UI Application
      • CLI Management
      • TypeScript SDK
    • Hedera Guardian
    • Hedera WalletConnect
  • SDKs & APIs
    • SDKs
      • Build Your Hedera Client
      • Set Up Your Local Network
      • Network Address Book
      • Keys
        • Generate a new key pair
        • Import an existing key
        • Create a key list
        • Create a threshold key
        • Generate a mnemonic phrase
        • Recover keys from a mnemonic phrase
      • HBAR
      • Specialized Types
      • Pseudorandom Number Generator
      • Transactions
        • Create a Batch Transaction
        • Transaction ID
        • Modify transaction fields
        • Create an unsigned transaction
        • Manually sign a transaction
        • Submit a transaction
        • Sign a multisignature transaction
        • Get a transaction receipt
        • Get a transaction record
      • Schedule Transaction
        • Schedule ID
        • Create a schedule transaction
        • Sign a scheduled transaction
        • Delete a schedule transaction
        • Get schedule info
        • Network Response Messages
      • Queries
      • General Network Response Messages
      • Accounts and HBAR
        • Create an account
        • Update an account
        • Transfer cryptocurrency
        • Approve an allowance
        • Delete an allowance
        • Delete an account
        • Get account balance
        • Get account info
        • Network Response Messages
      • Consensus Service
        • Create a topic
        • Update a topic
        • Submit a message
        • Delete a topic
        • Get topic messages
        • Get topic info
        • Network Response
      • Token Service
        • Token ID
        • NFT ID
        • Token types
        • Create a token
        • Custom token fees
        • Update a token
        • Update token custom fees
        • Update NFT metadata
        • Transfer tokens
        • Airdrop a token
        • Claim a token
        • Cancel a token
        • Reject a token
        • Delete a token
        • Mint a token
        • Burn a token
        • Freeze an account
        • Unfreeze an account
        • Enable KYC account flag
        • Disable KYC account flag
        • Associate tokens to an account
        • Dissociate tokens from an account
        • Pause a token
        • Unpause a token
        • Wipe a token
        • Atomic swaps
        • Get account token balance
        • Get token info
        • Get NFT info
        • Network Response Messages
      • File Service
        • Create a file
        • Append to a file
        • Update a file
        • Delete a file
        • Get file contents
        • Get file info
        • Network Response Messages
      • Smart Contract Service
        • Delegate Contract ID
        • Create a smart contract
        • Update a smart contract
        • Delete a smart contract
        • Call a smart contract function
        • Ethereum transaction
        • Get a smart contract function
        • Get smart contract bytecode
        • Get smart contract info
        • Hedera Service Solidity Libraries
        • Network Response Messages
      • Signature Provider
        • Provider
        • Signer
        • Wallet
        • Local Provider
    • Mirror Node REST API
      • Accounts
      • Balances
      • Blocks
      • Schedule Transactions
      • Smart Contracts
      • Tokens
      • Topics
      • Transactions
      • Network
    • Hedera Consensus Service gRPC API
    • Hedera APIs
      • Basic Types
        • AccountAmount
        • AccountID
        • ContractID
        • CryptoAllowance
        • CurrentAndNextFeeSchedule
        • FeeComponents
        • FeeData
        • FeeSchedule
        • FileID
        • Fraction
        • HederaFunctionality
        • Key
        • KeyList
        • NftAllowance
        • NftTransfer
        • NodeAddress
        • NodeAddressBook
        • RealmID
        • ScheduleID
        • SemanticVersion
        • ServicesConfigurationList
        • ServiceEndpoint
        • Setting
        • ShardID
        • Signature
        • SignatureList
        • SignatureMap
        • SignaturePair
        • SubType
        • TransferList
        • TransactionID
        • ThresholdKey
        • ThresholdSignature
        • TokenAllowance
        • TokenBalance
        • TokenBalances
        • TokenFreezeStatus
        • TokenPauseStatus
        • TokenID
        • TokenKycStatus
        • TokenRelationship
        • TokenTransferList
        • TokenType
        • TokenSupplyType
        • TopicID
        • TransactionFeeSchedule
      • Cryptocurrency Accounts
        • CryptoService
        • CryptApproveAllowance
        • CryptoDeleteAllowance
        • CryptoCreate
        • CryptoTransfer
        • CryptoUpdate
        • CryptoDelete
        • CryptoGetAccountBalance
        • CryptoGetAccountRecords
        • CryptoGetInfo
        • CryptoGetStakers
      • Consensus Service
        • Consensus Service
        • ConsensusCreateTopic
        • ConsensusUpdateTopic
        • ConsensusSubmitMessage
        • ConsensusDeleteTopic
        • ConsensusTopicInfo
        • ConsensusGetTopicInfo
      • Schedule Service
        • ScheduleService
        • SchedulableTransactionBody
        • ScheduleCreate
        • ScheduleDelete
        • ScheduleSign
        • ScheduleGetInfo
      • Token Service
        • TokenService
        • CustomFees
          • AssessedCustomFee
          • CustomFee
          • FractionalFee
          • FixedFee
          • RoyaltyFee
        • TokenCreate
        • TokenUpdate
        • TokenFeeScheduleUpdate
        • TokenDelete
        • TokenMint
        • TokenBurn
        • TokenFreezeAccount
        • TokenUnfreezeAccount
        • TokenGrantKyc
        • TokenRevokeKyc
        • TokenAssociate
        • TokenDissociate
        • TokenWipeAccount
        • TokenPause
        • TokenUnpause
        • TokenGetInfo
        • TokenGetNftInfo
        • TokenGetNftInfos
        • TokenGetAccountNftInfo
      • File Service
        • FileService
        • FileCreate
        • FileAppend
        • FileUpdate
        • FileDelete
        • FileGetContents
        • FileGetInfo
      • Smart Contracts
        • SmartContractService
        • ContractCall
        • ContractCallLocal
        • ContractCreate
        • ContractUpdate
        • ContractDelete
        • ContractGetByteCode
        • ContractGetInfo
        • ContractGetRecords
      • Miscellaneous
        • Duration
        • ExchangeRate
        • Freeze
        • FreezeType
        • GetByKey
        • GetBySolidityID
        • NetworkGetVersionInfo
        • NetworkService
        • Query
        • QueryHeader
        • Response
        • ResponseCode
        • ResponseHeader
        • SystemDelete
        • SystemUndelete
        • TimeStamp
        • Transaction
        • TransactionBody
        • TransactionContents
        • TransactionGetFastRecord
        • TransactionGetReceipt
        • TransactionGetRecord
        • TransactionReceipt
        • TransactionRecord
        • TransactionResponse
        • UncheckedSubmit
    • Hedera Status API
  • Support & Community
    • Glossary
    • Contributing to Hedera documentation
      • Contribution Guidelines
        • Creating Issues
        • Creating Pull Requests
        • Hedera Improvement Proposal (HIP)
        • Submit Demo Applications
      • Style Guide
        • Understanding different types of documentation
        • Use of HBAR and tinybars
        • Use of web2 and web3
        • Language and grammar
        • Formatting
        • Punctuation
        • GitBook Markdown Syntax
    • Discord
    • GitHub
    • Stack Overflow
    • Hedera Blog
    • Bug Bounty
    • Hedera Help
    • Documentation Survey
    • Meetups
    • Brand Guidelines
    • Status Page
Powered by GitBook
On this page
  • Prerequisites
  • Table of Contents
  • Step 1: Project Setup
  • Step 2. Creating, minting, and transferring an NFT
  • Step 3. Pause a Token
  • Step 4. Unpause a Token
  • Step 5. Freeze a Token for a Specific Account
  • Step 6. Unfreeze a Token for a Specific Account
  • Step 7. Wipe a Token
  • Step 8. Delete a Token
  • Conclusion
  • Additional Resources

Was this helpful?

Edit on GitHub
  1. Tutorials
  2. Smart Contracts

HTS x EVM - Part 3: How to Pause, Freeze, Wipe, and Delete NFTs

PreviousHTS x EVM - Part 2: KYC & UpdateNextHedera Smart Contracts Workshop

Last updated 1 month ago

Was this helpful?

LogoLogo

INTRODUCTION

  • Fees
  • Core Concepts
  • Network Information

TOOLS

  • Bridge
  • Oracles
  • Explorers
  • Developer Portal & Faucet

RESOURCES

  • Status
  • Bug Bounty
  • Build on Hedera (course)
  • Documentation Survey

In HTS x EVM - Part 2, you learned how to grant / revoke KYC and manage a token using the . But those aren't all the token operations you can do!

In this guide, you will learn how to:

  • Pause a token (stop all operations)

  • Freeze a token for a specific account

  • Wipe NFTs from a specific account

  • Delete a token


Prerequisites

  • ECDSA account from the Hedera Portal.

  • Basic understanding of Solidity.


Table of Contents

  1. Project Setup

  2. Creating, minting, and transferring an NFT

  3. Pause a Token

  4. Unpause a Token

  5. Freeze a Token for a Specific Account

  6. Unfreeze a Token for a Specific Account

  7. Wipe a Token

  8. Delete a Token

  9. Conclusion

  10. Additional Resources


Step 1: Project Setup

  1. Clone the repository

git clone https://github.com/hedera-dev/hts-evm-hybrid-mint-nfts.git
cd hts-evm-hybrid-mint-nfts
  1. Install dependencies

npm install
  1. Create .env file set up environment variables

cp .env.example .env

Edit the .env file to include your Hedera Testnet account's private key. Use your ECDSA Hex Encoded Private Key when interacting with Hedera's EVM via the JSON-RPC relay.

PRIVATE_KEY=0x
  1. Run the test script

npx hardhat test test/3-PauseFreezeWipeDelete.ts

This script deploys and tests all of the functionality inside of the PauseFreezeWipeDelete Smart Contract. We'll deep dive into the Smart Contract's functions and corresponding tests below!


Step 2. Creating, minting, and transferring an NFT

Check out those tutorials for specific details or the contracts/3-PauseFreezeWipeDelete.ts to see the code for adding the new keys.


Step 3. Pause a Token

Function: pauseToken()

Purpose: Stops all operations (e.g., mint, transfer, burn, etc.) for the token, across every account.

Key Code Snippet:

contracts/3-PauseFreezeWipeDelete.sol
function pauseToken() external onlyOwner {
    require(tokenAddress != address(0), "Token not created yet");
    int response = pauseToken(tokenAddress);
    require(response == HederaResponseCodes.SUCCESS, "Failed to pause token");
    emit TokenPaused();
}

Test Implementation:

test/3-PauseFreezeWipeDelete.ts
it("should pause the token", async () => {
    const pauseTx = await nftContract.pauseToken({
        gasLimit: 350_000
    });

    await expect(pauseTx)
        .to.emit(nftContract, "TokenPaused");

    // Try to transfer while paused - should fail
    const serialNumber = 2n;
    await expect(
        nftContract.transferNFT(owner.address, serialNumber)
    ).to.be.reverted;
});

After pausing, we attempt a transfer. The test expects a revert (the transfer fails) because the token is paused.


Step 4. Unpause a Token

Function: unpauseToken()

Purpose: Reenables actions to be performed on and with the token

Key Code Snippet:

contracts/3-PauseFreezeWipeDelete.sol
function unpauseToken() external onlyOwner {
    require(tokenAddress != address(0), "Token not created yet");
    int response = unpauseToken(tokenAddress);
    require(response == HederaResponseCodes.SUCCESS, "Failed to unpause token");
    emit TokenUnpaused();
}

Test Implementation:

test/3-PauseFreezeWipeDelete.ts
it("should unpause the token", async () => {
    const unpauseTx = await nftContract.unpauseToken({
        gasLimit: 350_000
    });

    await expect(unpauseTx)
        .to.emit(nftContract, "TokenUnpaused");

    // Transfer should work now
    const serialNumber = 2n;
    const transferTx = await nftContract.transferNFT(owner.address, serialNumber);
    await expect(transferTx)
        .to.emit(nftContract, "NFTTransferred")
        .withArgs(owner.address, serialNumber);
});

We confirm that normal token operations (e.g., transfers) resume after the unpause.


Step 5. Freeze a Token for a Specific Account

Function: freezeAccount(address account)

Purpose: Freezes a specific account, meaning it can neither send nor receive the token. Freezing is more granular than pausing; it only affects a specific account. This is useful for making soul-bound tokens.

Key Code Snippet:

contracts/3-PauseFreezeWipeDelete.sol
function freezeAccount(address account) external onlyOwner {
    require(tokenAddress != address(0), "Token not created yet");
    int response = freezeToken(tokenAddress, account);
    require(response == HederaResponseCodes.SUCCESS, "Failed to freeze account");
    emit AccountFrozen(account);
}

Test Implementation:

test/3-PauseFreezeWipeDelete.ts
it("should freeze owner", async () => {
    const freezeTx = await nftContract.freezeAccount(owner.address, {
        gasLimit: 350_000
    });

    await expect(freezeTx)
        .to.emit(nftContract, "AccountFrozen")
        .withArgs(owner.address);

    // Try to transfer to frozen account - should fail
    const serialNumber = 3n;
    await expect(
        nftContract.transferNFT(owner.address, serialNumber)
    ).to.be.reverted;
});
  • We freeze the owner account.

  • The test ensures that transferring an NFT to or from this frozen account reverts.


Step 6. Unfreeze a Token for a Specific Account

Function: unfreezeAccount(address account)

Purpose: Unfreezes the token for a specific account.

Key Code Snippet:

contracts/3-PauseFreezeWipeDelete.sol
function unfreezeAccount(address account) external onlyOwner {
    require(tokenAddress != address(0), "Token not created yet");
    int response = unfreezeToken(tokenAddress, account);
    require(response == HederaResponseCodes.SUCCESS, "Failed to unfreeze account");
    emit AccountUnfrozen(account);
}

Test Implementation:

test/3-PauseFreezeWipeDelete.ts
it("should unfreeze owner", async () => {
    const unfreezeTx = await nftContract.unfreezeAccount(owner.address, {
        gasLimit: 350_000
    });

    await expect(unfreezeTx)
        .to.emit(nftContract, "AccountUnfrozen")
        .withArgs(owner.address);
});

After unfreezing, the owner account can transact freely again.


Step 7. Wipe a Token

Function: wipeTokenFromAccount(address account, int64[] serialNumbers)

Purpose: Wiping effectively burns that token (i.e., reduces the total supply) from a non-treasury account.

Key Code Snippet:

contracts/3-PauseFreezeWipeDelete.sol
function wipeTokenFromAccount(
    address account,
    int64[] memory serialNumbers
) external onlyOwner {
    require(tokenAddress != address(0), "Token not created yet");
    int response = wipeTokenAccountNFT(tokenAddress, account, serialNumbers);
    require(response == HederaResponseCodes.SUCCESS, "Failed to wipe token");
    emit TokenWiped(account, serialNumbers);
}

Test Implementation:

test/3-PauseFreezeWipeDelete.ts
it("should wipe NFT from owner", async () => {
    const serialNumbers = [1n];
    const wipeTx = await nftContract.wipeTokenFromAccount(
        owner.address,
        serialNumbers,
        {
            gasLimit: 350_000
        }
    );

    await expect(wipeTx)
        .to.emit(nftContract, "TokenWiped")
        .withArgs(owner.address, serialNumbers);
});

We specify which serial numbers we want to wipe. The test confirms the TokenWiped event is emitted upon success.


Step 8. Delete a Token

Function: deleteToken()

Purpose: Renders a token completely unusable for future operations. The token still exists on the ledger (you can query it), but all transactions (e.g., minting, transfers, etc.) will fail. The ADMIN key is required to delete.

Key Code Snippet:

contracts/3-PauseFreezeWipeDelete.sol
deleteToken() external onlyOwner {
    require(tokenAddress != address(0), "Token not created yet");
    int response = deleteToken(tokenAddress);
    require(response == HederaResponseCodes.SUCCESS, "Failed to delete token");
    emit TokenDeleted();
}

Test Implementation:

test/3-PauseFreezeWipeDelete.ts
it("should delete the token", async () => {
    const deleteTx = await nftContract.deleteToken({
        gasLimit: 350_000
    });

    await expect(deleteTx)
        .to.emit(nftContract, "TokenDeleted");

    // Try to mint after deletion - should fail
    const metadata = [ethers.toUtf8Bytes("ipfs://metadata3")];
    await expect(
        nftContract.mintNFT(metadata)
    ).to.be.reverted;
});

Once deleted, attempting further operations like minting will fail.


Conclusion

In this guide, you saw how to replicate key HTS operations (pause, freeze, wipe, delete) directly in a Solidity contract by calling the HTS System Contract functions on Hedera. This approach provides fine-grained control via the contract’s ownership and key management, which is especially useful if you need all relevant HTS functionality in a single deployable smart contract.

Key Takeaways:

  • If you want to perform the respective operations later, you must set the ADMIN, FREEZE, PAUSE, WIPE, and SUPPLY keys when creating a token via a contract.

  • Any account that needs to receive or send the token must be associated with it.

  • Pausing affects all operations globally while freezing targets a single account.

  • Wiping NFTs effectively burns them, reducing total supply.

  • Deleting a token makes it unusable for future operations but remains queryable on the ledger.


Additional Resources

Check out our GitHub repo to find the full contract and Hardhat test scripts, along with the configuration files you need to deploy and test on Hedera!

  • Full Contract and Hardhat Test Scripts Repository

Writer: Jake, Developer Relations Engineer

Editor: Michiel, Developer Relations Engineer

Editor: Krystal, Technical Writer

Make sure to use an ECDSA account with for the test script to run successfully.

These steps of the flow have been covered in the and Part 2. The only difference here is that we set a few different keys to handle pausing, freezing, and wiping.

For , specify an amount to wipe; for , we specify the serial numbers to be wiped.

|

|

|

GitHub
X
GitHub
LinkedIn
GitHub
X
Hedera Token Service (HTS) System Smart Contract
Part 1
Unlimited Auto-Associations
fungible tokens
non-fungible tokens (NFTs)