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:
- 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
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 💥 .
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.
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.