Skip to content

Public repository which shows how to mint, burn and transfer HTS fungible tokens using Solidity smart contracts

License

Notifications You must be signed in to change notification settings

DRavlic/HTS-with-HSC-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hedera Solidity smart contract integration with HTS

Intro

Public repository which shows how to mint, burn and transfer HTS fungible tokens using Solidity smart contracts. This is possible because of the HIP-206 which uses precompiled Solidity smart contract HederaTokenService for interacting with HTS. This repository also uses HederaResponseCodes library and IHederaTokenService interface which can be found under contracts/hts-precompile/

All right granted by MIT license.

For more information about this subject, look at:

Get started

  • Run npm install to setup your development environment
  • Log in (or register) on Hedera Portal and copy your Account ID, public and private key into .env file
  • Take a look at HtsFungible.sol contract on how to integrate HTS with your Solidity smart contract
  • Implement YourSoliditySmartContract.sol with desired logic and then run: solcjs --bin YourSoliditySmartContract.sol
  • Create a new accounts on Hedera testnet by running a generate_account.js if necessary. Copy the details into .env file.
  • Run showcase.js to see how to transfer, mint, burn and associate HTS token with Solidity smart contract

About Hedera

Hedera is a distributed ledger for building and deploying decentralized applications and microservices. You can use Hedera’s network services– Consensus, Tokens, Smart Contracts, and File Service–atop the hashgraph consensus algorithm, to build applications with high throughput, fair ordering, and low-latency consensus finality in seconds without relying on centralized infrastructure.

The network is made up of permissioned nodes run by the Hedera Governing Council, a group of term-limited enterprises that lead the network's direction. Over time the network will move to a permissionless model.

Ready to submit your first transaction to a Hedera network? Visit our Getting Started section to learn the basics of how to create an account and transfer HBAR 💥 .

What is Hashgraph?

Hashgraph is a distributed consensus algorithm and data structure that is fast, fair, and secure. This indirectly creates a trusted community, even when members do not necessarily trust each other. Hedera is the only authorized public network to use hashgraph. You can learn more about the consensus algorithm here.

Hello Future Roadmap

Hedera has an audacious but simple vision: to build a trusted, secure, and empowered digital future for all. Take a look at our development roadmap for a glimpse into the future.

About

Public repository which shows how to mint, burn and transfer HTS fungible tokens using Solidity smart contracts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published