Get started with the Hedera Token Service - Part 1 | Hedera Hedera Network Services Token Service Mint and configure tokens and accounts. Consensus Service Verifiable timestamps and ordering of events. Smart Contracts Run Solidity smart contracts. HBAR The Hedera network's native cryptocurrency. Insights How It Works Learn about Hedera from end to end. Explorers View live and historical data on Hedera. Dashboards Analyze network activity and metrics. Network Nodes Understand networks and node types. Devs Start Building Get Started Learn core concepts and build the future. Documentation Review the API and build using your favorite language. Developer Resources Integrations Plugins and microservices for Hedera. Fee Estimator Understand and estimate transaction costs. Open Source Hedera is committed to open, transparent code. Learning Center Learn about web3 and blockchain technologies. Grants Grants & accelerators for your project. Bounties Find bugs. Submit a report. Earn rewards. Ecosystem ECOSYSTEM Hedera Ecosystem Applications, developer tools, network explorers, and more. NFT Ecosystem Metrics Analyze on-chain and market NFT ecosystem metrics. CATEGORIES Web3 Applications Connect into the innovative startups decentralizing the web on Hedera. Enterprise Applications Learn about the Fortune 500 companies decentralizing the web on Hedera. Wallets & Custodians Create a Hedera account to manage HBAR, fungible tokens, and NFTs. Network Explorers Hedera mainnet and testnet graphical network explorers. Developer Tooling Third-party APIs, integrations, and plugins to build apps on Hedera. Grants & Accelerators Boost your project with support from the Hedera ecosystem. Partner Program Explore our partners to bring your vision into reality. Hedera Council Over 30 highly diversified organizations govern Hedera. Use Cases Hedera Solutions Asset Tokenization Studio Open source toolkit for tokenizing assets securely. Stablecoin Studio All-in-one toolkit for stablecoin solutions. Hedera Guardian Auditable carbon markets and traceability. Functional Use Cases Data Integrity & AI Reliable, secure, and ethically governed insights. Sustainability Enabling fair carbon markets with trust. Real-World Asset Tokenization Seamless tokenization of real-world assets and digital at scale. Consumer Engagement & Loyalty Mint, distribute, and redeem loyalty rewards. Decentralized Identity Maintain the lifecycle of credentials. Decentralized Logs Scalable, real-time timestamped events. DeFi Dapps built for the next-generation of finance. NFTs Low, fixed fees. Immutable royalties. Payments Scalable, real-time, and affordable crypto-payments. HBAR Overview Learn about Hedera's token, HBAR. Treasury Management Hedera’s report of the HBAR supply. Governance Decentralized Governance Hedera Council See the world's leading organizations that own Hedera. About Meet Hedera's Board of Directors and team. Journey Watch Hedera's journey to build an empowered digital future for all. Transparent Governance Public Policy Hedera's mission is to inform policy and regulation that impact the industry. Meeting Minutes Immutably recorded on Hedera. Roadmap Follow Hedera's roadmap in its journey to build the future. Resources Company What's New Partners Papers Careers Media Blog Technical Press Podcast Community Events Meetups Store Brand Navigation QUICKSTART Get started with the Hedera Token Service - Part 1 technical Dec 07, 2020 by Cooper Kunz Developer Evangelist This blog post has been updated to include the latest capabilities of the Hedera Token Service.  See the updated version: Get Started with the Hedera Token Service - Part 1: How to Mint NFTs The Hedera Token Service (HTS) is used via a robust set of APIs for the configuration, minting, and management of tokens on Hedera, without needing to set up and deploy a smart contract. Tokens are as fast, fair, and secure as hbar and cost a fraction of 1¢ USD to transfer. Let’s take a look at why you’d consider using it versus something like a fungible token with a smart contract on the Ethereum Blockchain, and the different types of functionalities that are available within the Hedera API (HAPI): With HTS, it’s incredibly easy to create a new token that can represent anything from a stablecoin pegged to the USD value, or an in-game reward system. Note: while most of the following examples are in JavaScript (v2.0.7), official SDKs supporting Go and Java are also available and implemented very similarly, alongside community-supported SDKs in .NET and various other frameworks and/or languages. Create a Token //Create a token const transaction = await new TokenCreateTransaction() .setTokenName("Your Token Name") .setTokenSymbol("F") .setTreasuryAccountId(treasuryAccountId) .setInitialSupply(5000) .setAdminKey(adminPublicKey) .freezeWith(client); //Sign the transaction with the token adminKey and the token treasury account private key const signTx = await (await transaction.sign(adminKey)).sign(treasuryKey); //Sign the transaction with the client operator private key and submit to a Hedera network const txResponse = await signTx.execute(client); //Get the receipt of the the transaction const receipt = await txResponse.getReceipt(client); //Get the token ID from the receipt const tokenId = receipt.tokenId; console.log("The new token ID is " + tokenId); To show how similar the Hedera Token Service is to use in any of our supported SDKs, here is the same example but in Java. //Create the transaction TokenCreateTransaction transaction = new TokenCreateTransaction() .setTokenName("Your Token Name") .setTokenSymbol("F") .setTreasuryAccountId(treasuryAccountId) .setInitialSupply(5000) .setAdminKey(adminKey.getPublicKey()); //Build the unsigned transaction, sign with admin private key of the token, sign with the token treasury private key, submit the transaction to a Hedera network TransactionResponse txResponse = transaction.freezeWith(client).sign(adminKey).sign(treasuryKey).execute(client); //Request the receipt of the transaction TransactionReceipt receipt = txResponse.getReceipt(client); //Get the token ID from the receipt TokenId tokenId = receipt.tokenId; System.out.println("The new token ID is " + tokenId); And here is the same relevant code example for the Go SDK. //Create the transaction and freeze the unsigned transaction tokenCreateTransaction, err := hedera.NewTokenCreateTransaction(). SetTokenName("Your Token Name"). SetTokenSymbol("F"). SetTreasuryAccountID(treasuryAccountId). SetInitialSupply(1000). SetAdminKey(adminKey). FreezeWith(client) if err != nil { panic(err) } //Sign with the admin private key of the token, sign with the token treasury private key, sign with the client operator private key and submit the transaction to a Hedera network txResponse, err := tokenCreateTransaction.Sign(adminKey).Sign(treasuryKey).Execute(client) if err != nil { panic(err) } //Request the receipt of the transaction receipt, err := txResponse.GetReceipt(client) if err != nil { panic(err) } //Get the token ID from the receipt tokenId := *receipt.TokenID fmt.Printf("The new token ID is %v\n", tokenId) Token Associations Before another account can receive or send this specific token ID, they have to become “associated” with it — this helps reduce unwanted spam, potential tax liability, or other concerns from users that don’t want to be associated with any of the variety of tokens that will be created on HTS. //Associate a token to an account and freeze the unsigned transaction for signing const transaction = await new TokenAssociateTransaction() .setAccountId(accountId) .setTokenIds([tokenId]) .freezeWith(client); //Sign with the private key of the account that is being associated to a token const signTx = await transaction.sign(accountKey); //Submit the transaction to a Hedera network const txResponse = await signTx.execute(client); //Request the receipt of the transaction const receipt = await txResponse.getReceipt(client); //Get the transaction consensus status const transactionStatus = receipt.status; console.log("The transaction consensus status " +transactionStatus.toString()); Transferring tokens Transferring these newly created tokens between accounts, after the token has been created and both accounts are associated with the new token ID, is almost easier. //Create the transfer transaction const transaction = await new TransferTransaction() .addTokenTransfer(tokenId, accountId1, -10) .addTokenTransfer(tokenId, accountId2, 10) .freezeWith(client); //Sign with the sender account private key const signTx = await transaction.sign(accountKey1); //Sign with the client operator private key and submit to a Hedera network const txResponse = await signTx.execute(client); //Request the receipt of the transaction const receipt = await txResponse.getReceipt(client); //Obtain the transaction consensus status const transactionStatus = receipt.status; console.log("The transaction consensus status " +transactionStatus.toString()); Integrating HTS is incredibly easy, within just a few lines of code in your favorite programming language you can create, associate, and transfer tokens. Please continue reading onto Part 2 of this HTS introduction in order to learn more about the administration functionalities provided by HAPI, and in Part 3 we will discuss other compliance mechanisms like KYC compliance. Share This Back to blog What is gRPC, gRPC-Web, and Proxies? Ed Marquez Pragmatic Blockchain Design Patterns – Integrating Blockchain into Business Processes Michiel Mulders Zero Cost EthereumTransaction on Success: Hedera's New Fee Model for Relay Operators Oliver Thorn Hedera Adopts Chainlink Standard for Cross-Chain Interoperability To Accelerate Ecosystem Adoption Hedera Team Hedera Developer Highlights March 2025 Michiel Mulders Hedera Release Cycle Overview Ed Marquez View All Posts Sign up for the newsletter CONNECT WITH US Transparency Open Source Audits & Standards Sustainability Commitment Carbon Offsets Governance Hedera Council Public Policy Treasury Management Meeting Minutes LLC Agreement Node Requirements Community Events Meetups HBAR Telegram Developer Discord Twitter Community Support FAQ Network Status Developer Discord StackOverflow Brand Brand Guidelines Built on Hedera Logo Hedera Store About Team Partners Journey Roadmap Careers Contact General Inquiry Public Relations © 2018-2025 Hedera Hashgraph, LLC. All trademarks and company names are the property of their respective owners. All rights in the Deutsche Telekom mark are protected by Deutsche Telekom AG. All rights reserved. Hedera uses the third party marks with permission. Terms of Use  |  Privacy Policy