Hedera Token Service System Contract
Hedera enables the native creation of fungible and non-fungible tokens through its SDKs, eliminating the need for smart contracts. This approach leverages Hedera's core features like high TPS, security, and low latency for an optimized user experience. Additionally, the Hedera Token Service provides a cost-effective method for tokenization. Smart contracts on Hedera can also interact with this service via the Hedera Token Service System contract, offering functionalities like token creation, burning, and minting through the EVM.
Some of the key functions defined in the Hedera Token Service System Contract include:
createFungibleToken
createFungibleToken(HederaToken memory token, int64 initialTotalSupply, int32 decimals)
createFungibleTokenWithCustomFees
createFungibleTokenWithCustomFees(HederaToken memory token, int64 initialTotalSupply, int32 decimals, FixedFee[] memory fixedFees, FractionalFee[] memory fractionalFees)
createNonFungibleTokenWithCustomFees
createNonFungibleTokenWithCustomFees(HederaToken memory token, FixedFee[] memory fixedFees, RoyaltyFee[] memory royaltyFees)
cryptoTransfer
Unreleased
cryptoTransfer(TransferList memory transferList, TokenTransferList[] memory tokenTransfers) external returns (int64 responseCode)
transferFromNFT
transferFromNFT(address token, address from, address to, uint256 serialNumber)
transferNFT
transferNFT(address token, address sender, address recipient, int64 serialNum)
transferNFTs
transferNFTs(address token, address[] memory sender, address[] memory receiver, int64[] memory serialNumber)
transferToken
transferToken(address token, address sender, address recipient, int64 amount)
transferTokens
transferTokens(address token, address[] memory accountId, int64[] memory amount)
Given your HTS token address, you can invoke these functions:
Example
Deploy a Contract Using the Hedera Token ServiceAdditional References
Last updated