Note:
ERC-721 Token addresses refer to full Hedera Token Service (HTS) fungible token entities. These tokens can be fully managed by HTS API calls. Additionally, by utilizing IERC721 interfaces or system contract functions, these tokens can also be managed by smart contracts on Hedera.Supported Functions
From Interface ERC-721
ownerOf
ownerOf
_tokenId is the Hedera serial number of the NFT.approve
approve
_tokenId) to another account from the owner. The approval is cleared when the token is transferred. The _tokenId is the Hedera serial number of the NFT.This works by creating a synthetic CryptoApproveAllowanceTransaction with payer - the account that called the precompile (the message sender property of the message frame in the EVM).If the spender address is 0, this creates a CryptoDeleteAllowanceTransaction instead and removes any allowances previously approved on the token.Fires an approval event with the following signature when executed:event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);setApprovalForAll
setApprovalForAll
function setApprovalForAll(address _operator, bool _approved) externalApprove or remove an operator as an operator for the caller. Operators can call transferFrom for any token owned by the caller.This works by creating a synthetic CryptoApproveAllowanceTransaction with payer - the account that called the precompile (the message sender property of the message frame in the EVM).getApproved
getApproved
function getApproved(uint256 _tokenId) external view returns (address)Returns the account approved for the specified
_tokenId. The _tokenId is the Hedera serial number of the NFT.This works by loading the SPENDER property of the token from the NFTs ledger.isApprovedForAll
isApprovedForAll
function isApprovedForAll(address _owner, address _operator) external view returns (bool)Returns if the
operator is allowed to manage all of the assets of owner.This works by loading the APPROVE_FOR_ALL_NFTS_ALLOWANCES property of the owner account and verifying if the list of approved for all accounts contains the account id of the operator.transferFrom
transferFrom
_tokenId) from a Hedera account (from) to another Hedera account (to) in Solidity format. The _tokenId is the Hedera serial number of the NFT.This works by creating a synthetic CryptoTransferTransaction with nft token transfers with the is_approval property set to true.From Interface ERC721Metadata
name
name
symbol
symbol
tokenURI
tokenURI
_tokenId is the Hedera serial number of the NFT.From Interface ERC721Enumerable
totalSupply
totalSupply
Unsupported Functions
The following ERC-721 operations will not be natively supported on Hedera and will return a failure if they’re called. Advanced functionality is achievable only through custom implementations within smart contracts.From interface ERC-721
safeTransferFrom
safeTransferFrom
From interface ERC721Enumerable
tokenByIndex
tokenByIndex
tokenOfOwnerByIndex
tokenOfOwnerByIndex
All semantics of Interface ERC721TokenReceiver
- Existing Hedera token association rules will take the place of such checks.