ADocumentation Index
Fetch the complete documentation index at: https://hedera-0c6e0218-mintlify-12ced39d.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
TokenUpdateNftsTransaction updates the metadata property of non-fungible tokens (NFTs) on the Hedera network. The transaction requires signing with the metadata key and will fail otherwise. The new metadata must be a valid byte array and is limited to 100 bytes. All transactions are recorded on the network, providing an auditable history of changes. The metadata key allows updates to existing NFTs in a collection; if no value is provided for a field, it remains unchanged.
| Property | Description |
|---|---|
| Token ID | The ID of the NFT to update. |
| Serial Numbers | The list of serial numbers to be updated. |
| Metadata | The new metadata of the NFT(s). |
- Metadata key is required to sign.
- Transaction fee payer account key.
- Please see the transaction and query fees table for the base transaction fee.
- Please use the Hedera fee estimator to estimate your transaction fee cost.
Methods
| Method | Type | Requirement |
|---|---|---|
setTokenId(<tokenId>) | TokenID | Required |
setSerialNumbers(<[int64]>) | List<int64> | Required |
setMetadata(<bytes>) | bytes | Optional |
FAQs
What is the transaction fee to update a token's metadata?
What is the transaction fee to update a token's metadata?
$0.001 To update metadata for multiple NFTs in a single call is N x $0.001 (N being the number of NFTs to update). See the full list of token transaction fees here.What happens if I forget to add metadata keys during token creation?
What happens if I forget to add metadata keys during token creation?
Are metadata keys required for all token types?
Are metadata keys required for all token types?
Can I still create a token without metadata keys?
Can I still create a token without metadata keys?
Is it possible to remove metadata keys from a token after it has been created?
Is it possible to remove metadata keys from a token after it has been created?
Can the metadata key update the token metadata if the token is paused ?
Can the metadata key update the token metadata if the token is paused ?
Can NFT metadata be updated if the asset is held by an account that is frozen for operations with that token?
Can NFT metadata be updated if the asset is held by an account that is frozen for operations with that token?
tokenId of the NFT is not paused, and if the token has metadataKey the metadata of NFT can still be updated.Contributors: MilanWR