---
title: "Smart contracts 2.0 now on the Hedera testnet"
id: "15981"
type: "post"
slug: "smart-contracts-2-0-now-on-the-hedera-testnet"
published_at: "2022-01-20T17:56:00+00:00"
modified_at: "2026-02-03T23:51:59+00:00"
url: "https://hedera.com/blog/smart-contracts-2-0-now-on-the-hedera-testnet/"
markdown_url: "https://hedera.com/blog/smart-contracts-2-0-now-on-the-hedera-testnet.md"
excerpt: "Smart contracts play a critical role in building the trust layer of the internet. Used to manage autonomous logic that doesn’t rely on a centralized intermediary, server, or custom governance model, smart contracts can power core infrastructure like decentralized finance...."
taxonomy_category:
  - "Uncategorized"
taxonomy_post_tag:
  - "technical"
---

[Skip to content](#content)
blog

# Smart contracts 2.0 now on the Hedera testnet

January 20, 2022

![Hedera Team](/wp-content/uploads/2025/12/HH-logo-Black.jpg)

Hedera

Hedera provides secure, scalable infrastructure for real-world decentralized applications in finance, AI, and sustainability, governed by global enterprises.

[Smart contracts](https://hedera.com/learning/what-are-smart-contracts)
 play a critical role in building the trust layer of the internet. Used to manage autonomous logic that doesn’t rely on a centralized intermediary, server, or custom governance model, smart contracts can power core infrastructure of the future like decentralized finance.

While the [Hedera Smart Contract Service](https://hedera.com/smart-contract)
 is EVM compatible and runs Solidity, with the availability of Smart Contracts 2.0 now on the Hedera testnet it now does so with a few added bonuses as only Hedera and the soon to be [open-sourced hashgraph](https://hedera.com/blog/hedera-governing-council-votes-to-purchase-hashgraph-ip-commits-to-open-source-worlds-most-advanced-distributed-ledger-technology)
 can.

#### The best of both worlds with Hedera Token Service

Solidity smart contracts on Hedera now support the Hedera Token Service (HTS). This means that as a developer you can choose your own token adventure. Minting an in-app currency for your users? As easy as writing a JavaScript app. Want to programmatically mint an NFT for some cool generative art? Use smart contracts with Hedera Token Service precompile.

This flexibility is unprecedented. As a developer, you can now determine if a smart contract is required for your use case or not and consider the tradeoffs in throughput and cost appropriately. As an ecosystem, we’ll have to work together to better understand user experiences and best practices. We’ve put together a quickstart tutorial to [get started with your first smart contract using HTS](https://docs.hedera.com/hedera/tutorials/smart-contracts-service/deploy-a-contract-using-the-hedera-token-service)
 precompile, but here’s an example of the Solidity file.

![code window background](https://hedera.com/wp-content/uploads/2025/12/CodeSnippetBackground-scaled.jpg)

```
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.12;

import "./HederaTokenService.sol";
import "./HederaResponseCodes.sol";

contract HTS is HederaTokenService {

    function tokenAssociate(address sender, address tokenAddress) external {
        int response = HederaTokenService.associateToken(sender, tokenAddress);

        if (response != HederaResponseCodes.SUCCESS) {
            revert ("Associate Failed");
        }
    }

    function tokenTransfer(address tokenId, address fromAccountId , address toAccountId , int64 tokenAmount) external {
        int response = HederaTokenService.transferToken(tokenId, toAccountId, fromAccountId, tokenAmount);

        if (response != HederaResponseCodes.SUCCESS) {
            revert ("Transfer Failed");
        }
    }

    function tokenDissociate(address sender, address tokenAddress) external {
        int response = HederaTokenService.dissociateToken(sender, tokenAddress);

        if (response != HederaResponseCodes.SUCCESS) {
            revert ("Dissociate Failed");
        }
    }
}
```

#### Low fees, latency, and even lower energy-use

Every Hedera network service has low, predictable fees that are set in USD and paid for in hbars. The efficiency of hashgraph makes this possible and, as to be expected, these fees are still predictable when using smart contracts. Hedera, as an EVM implementation, [a Hyperledger Besu EVM](https://docs.hedera.com/hedera/core-concepts/smart-contracts/hyperledger-besu-evm)
 one to be precise, does have the notion of gas fees. For those unfamiliar, [gas](https://docs.hedera.com/hedera/core-concepts/smart-contracts/gas-and-fees)
 is the cost it takes for the computational resources to use a smart contract.

On other layer-1 networks, gas fees can be highly variable and at times downright unruly.

![Variable gas fees on Ethereum](https://hedera.com/wp-content/uploads/2022/01/Screen-Shot-2022-01-20-at-11.04.49-AM.png)

Ethereum hourly gas prices from ethgas.watch

On Hedera, gas fees are always predictable. What it takes to perform that smart contract today will be the same at any hour, no more network congestion issues or having to go so far as to create your own [device to know when it’s cheaper to deploy](https://twitter.com/isiain/status/1480283022574428165)
 a contract (it’s always a[$1 to deploy](http://www.hedera.com/fees)
 a contract on Hedera).

Next, the performance is fast and scalable. The amount of gas available in an entire block on ethereum, 15 million, is available in a second on Hedera. The transaction is final in seconds. No need to wait for block confirmations or have that internal debate if you should pay a low, medium, or high gas priority fee to speed your transaction up. Stay tuned for more performance results as we go through internal testing.

And lastly, of course like everything else on Hedera, all [smart contract use is carbon negative](https://hedera.com/blog/going-carbon-negative-at-hedera-hashgraph)
. Again, the efficiency of hashgraph makes this possible, with Hedera having the [lowest energy-use of layer-1 networks](https://hedera.com/ucl-blockchain-energy)
 with additional carbon offsets made possible through our partner, [Terapass](https://terrapass.com/)
.

#### Ready to build

We’re excited to see you [try the new Hedera Smart Contract Service](https://docs.hedera.com/hedera/tutorials/smart-contracts-service/deploy-a-contract-using-the-hedera-token-service)
 and see an emerging smart contract ecosystem spring up around Hedera. There are some known enhancements already on the roadmap and available as [Hedera Improvement Proposals (HIPs)](https://hips.hedera.com/all.html)
, if you have your own suggestions, don’t hesitate to submit them.

According to [Electric Capital’s web3 developer report](https://github.com/electric-capital/developer-reports/blob/master/dev_report_2021.pdf)
, 30% of all web3 developers are working with Solidity and the Ethereum Virtual Machine (EVM). We’re excited to help support the EVM and other layer-1 networks to help that number grow even more. If you’re not familiar yet with solidity, we’ve put together a helpful introduction with some recommended resources.

From developer tools to DeFi to DAOs we can’t wait to see what gets created. If you’re looking for support to start building or scaling your smart contract project, reach out to the [HBAR Foundation](http://hbarfoundation.org/)
.

[Back to Blog](/blog)

discover

See more articles

[View All](/blog)

![Image](https://hedera.com/wp-content/uploads/2026/08/Regulation_Blog-1024x576.png)

August 5, 2026

### Details decide. What digital asset policy did in July 2026

Halfway through 2026, the regulatory picture is coming into focus. Hedera Chief Policy Officer Nilmini Rubin and VP Global Policy Isadora Arredondo break down what moved in June across the

[Read More](https://hedera.com/blog/details-decide-what-digital-asset-policy-did-in-july-2026/)

![Deploy Multichain Dapps](https://hedera.com/wp-content/uploads/2026/07/HH600301_DeployMultichainDapps_Final-1024x576.png)

July 17, 2026

### Deploy Multichain Dapps on Hedera in 60 Seconds with scaffold-hbar

Deploying multichain dapps on Hedera has never been easier! With just one command, you can spin up a fully functional dapp using Next.js, Hardhat or Foundry, and AI agent context…

[Read More](https://hedera.com/blog/deploy-multichain-dapps-on-hedera-in-60-seconds-with-scaffold-hbar/)

![Regulation is finding its form](https://hedera.com/wp-content/uploads/2026/07/Regulation_Blog-1-1024x576.png)

July 13, 2026

### Regulation is finding its form in summer 2026

Halfway through 2026, the regulatory picture is coming into focus. Hedera Chief Policy Officer Nilmini Rubin and VP Global Policy Isadora Arredondo break down what moved in June across the

[Read More](https://hedera.com/blog/regulation-is-finding-its-form-in-summer-2026/)

## Ready to get started?

Discover why Hedera is the trusted institutional-grade network powering the new digital economy.

[Start Building](/start-building)

[Contact](/contact)

We use cookies to deliver the best experience on our website and to analyze traffic. By continuing to use this site, you consent to our cookie policy.

Review our [Privacy Policy](/privacy)
 to understand how Hedera collects and uses information.

Accept All CookiesAccept Necessary Cookies
