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 —

  1. 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

source

pub fn get_token_id(&self) -> Option<TokenId>

Returns the token for which to update NFTs.

source

pub fn token_id(&mut self, token_id: impl Into<TokenId>) -> &mut Self

Sets the token for which to update NFTs.

source

pub fn get_serials(&self) -> Vec<i64>

Returns the list of serial numbers to be updated.

source

pub fn serials(&mut self, serials: Vec<i64>) -> &mut Self

Sets the list of serial numbers to be updated.

source

pub fn get_metadata(&self) -> Vec<u8>

Returns the new metadata of the NFT(s).

source

pub fn metadata(&mut self, metadata: Vec<u8>) -> &mut Self

Sets the new metadata of the NFT(s).