Type Alias hedera::TokenUpdateNftsTransaction
source · pub type TokenUpdateNftsTransaction = Transaction<TokenUpdateNftsTransactionData>;
Expand description
At consensus, updates an already created Non Fungible Token to the given values.
If no value is given for a field, that field is left unchanged. Only certain fields such as metadata can be updated. Updating the metadata of an NFT does not affect its ownership or transferability. This operation is intended for updating attributes of individual NFTs in a collection./ — Signing Requirements —
- To update metadata of an NFT, the metadata_key of the token should sign the transaction.
Aliased Type§
struct TokenUpdateNftsTransaction { /* private fields */ }
Implementations§
source§impl TokenUpdateNftsTransaction
impl TokenUpdateNftsTransaction
sourcepub fn get_token_id(&self) -> Option<TokenId>
pub fn get_token_id(&self) -> Option<TokenId>
Returns the token for which to update NFTs.
sourcepub fn token_id(&mut self, token_id: impl Into<TokenId>) -> &mut Self
pub fn token_id(&mut self, token_id: impl Into<TokenId>) -> &mut Self
Sets the token for which to update NFTs.
sourcepub fn get_serials(&self) -> Vec<i64>
pub fn get_serials(&self) -> Vec<i64>
Returns the list of serial numbers to be updated.
sourcepub fn serials(&mut self, serials: Vec<i64>) -> &mut Self
pub fn serials(&mut self, serials: Vec<i64>) -> &mut Self
Sets the list of serial numbers to be updated.
sourcepub fn get_metadata(&self) -> Vec<u8> ⓘ
pub fn get_metadata(&self) -> Vec<u8> ⓘ
Returns the new metadata of the NFT(s).