Skip to content

tjdragon/hts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTS

August 2023

A step-by-step guide to use Hedera Token Service in java.

Links & Resources

Stablecoin framework

  • Created the stable coin via UI
  • Interaction to the smart contract via the UI or code

Test links:

  • The token linked to the Stable Coin is this one : 0.0.490601
  • The SC proxy contract : 0.0.490600
  • The SC proxy contract is the Token's treasury account, which is the default behaviour when the web app to deploy new SCs
  • The initial supply was 100 millions TEURZ
  • The max supply was infinite
  • After deploying the SC I minted 50 TEURZ to account 0.0.490575, which is the one you used to deploy the SCs

Transfer

In order for accounts to transfer tokens from account A to account B one cannot use the SCs, one has to use HTS and transfer token 0.0.490601, like any other regular hedera token.

However it is very important to note that in order for account A to hold token T, it must first associate to the token, that is an operation that cannot be carried out using our web app / SCs, you have to do it using HTS. Account 0.0.490575 was automatically associated to toke 0.0.490601 during the token creation.

Minting

In order to mint new tokens and directly assign them to accounts I must use the SCs via our web app, just like I minted 50 tokens to account 0.0.490575.

About

Hedera Token Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages