shgraph.hapi.0.54.1.source-code.token_update_nfts.proto Maven / Gradle / Ivy
syntax = "proto3";
package proto;
/*
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
option java_package = "com.hederahashgraph.api.proto.java";
// <<>> This comment is special code for setting PBJ Compiler java package
option java_multiple_files = true;
import "basic_types.proto";
import "google/protobuf/wrappers.proto";
/**
* 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.
*/
message TokenUpdateNftsTransactionBody {
/**
* The token for which to update NFTs.
*/
TokenID token = 1;
/**
* The list of serial numbers to be updated.
*/
repeated int64 serial_numbers = 2;
/**
* The new metadata of the NFT(s)
*/
google.protobuf.BytesValue metadata = 3;
}