Hedera Token Service

Get started Docs

Tokens, ready for the world

Tokenized assets offer a new way to create and manage value. With fungible and non-fungible assets businesses can make processes more efficient, reduce costs, and unlock new revenue streams.

The Hedera Token Service makes it easy for developers to manage tokens with scalable performance and predictable cost. All on a reliable network governed by the world’s leading organizations and based on the emerging industry standard Token Taxonomy Framework from the InterWork Alliance.

Scalable tokens

Hedera is the only public ledger that utilizes hashgraph consensus — making token transfers fast, settlement in seconds, and predictable fees at a fraction of 1¢ USD.

Mint in minutes

Create a unique token in just a few lines of code with Hedera SDK support for JavaScript, Java, Go, and other common languages.

Flexible permissions

Tooling and key configurations that meet the needs of common use case requirements — from supply management to flagging accounts for KYC compliance.

“The Hedera Token Service will enable Taskbar to predictably and reliably scale the use cases and versatility of our native utility and governance token.”

Ahmed Shlibak
Founder

Features and functionality

Swap tokens

Perform atomic swaps between tokens on Hedera and hbar.

Compliance tools

Optional token configurations offer the flexibility to flag account KYC verification, freeze, manage supply, and more.

No forks

The Hedera network has legal protections from forks, better protecting your assets and your users.

Low-latency

No more waiting for block confirmations. The Hedera Token Service reaches finality on transactions within seconds.

Predictable fees

Hedera achieves consensus efficiently, saving energy and costs. All transaction fees are fixed, costing less than 1¢ USD per transfer.

ABFT security

Tokens on Hedera benefit from the proven, best-in-class security of hashgraph.

Mint and manage tokens

Quickly create your own tokens with Hedera Token Service to manage assets with the predictable fees and fast finality of Hedera Hashgraph.

Function

Define token
  • Define token
  • Transfer token
  • Get balance

//Create the transaction and optionally freeze for manual signing

const transaction = await new TokenCreateTransaction()

.setTokenName("Your Token Name")

.setTokenSymbol("HGC")

.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);

//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);

//Create the query

const query = new AccountBalanceQuery()

.setAccountId(accountId);

//Sign with the client operator private key and submit to a Hedera network

const tokenBalance = await query.execute(client);

console.log("The token balance(s) for this account: " +tokenBalance.tokens);

Ready to tokenize?

Tokenized assets change the way we define ownership and value exchange. Here are a few resources to start your journey tokenizing assets on Hedera. Learn how to mint your first token or understand Hedera's various tokenization models.

Ready to start building?

Join a testnet or view the docs