shgraph.hedera-protobuf-java-api.0.55.0.source-code.token_get_nft_infos.proto Maven / Gradle / Ivy
The newest version!
syntax = "proto3";
package proto;
/*-
*
* Hedera Network Services Protobuf
*
* Copyright (C) 2018 - 2021 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 "token_get_nft_info.proto";
import "query_header.proto";
import "response_header.proto";
/**
* Applicable only to tokens of type NON_FUNGIBLE_UNIQUE. Gets info on NFTs N through M on the list
* of NFTs associated with a given NON_FUNGIBLE_UNIQUE Token.
* Example: If there are 10 NFTs issued, having start=0 and end=5 will query for the first 5 NFTs.
* Querying +all 10 NFTs will require start=0 and end=10
*
* INVALID_QUERY_RANGE response code will be returned if:
* 1) Start > End
* 2) Start and End indices are non-positive
* 3) Start and End indices are out of boundaries for the retrieved nft list
* 4) The range between Start and End is bigger than the global dynamic property for maximum query
* range
*
* NOT_SUPPORTED response code will be returned if the queried token is of type FUNGIBLE_COMMON
*
* INVALID_TOKEN_ID response code will be returned if the queried token does not exist
*/
message TokenGetNftInfosQuery {
/**
* Standard info sent from client to node, including the signed payment, and what kind of
* response is requested (cost, state proof, both, or neither).
*/
QueryHeader header = 1;
/**
* The ID of the token for which information is requested
*/
TokenID tokenID = 2;
/**
* Specifies the start index (inclusive) of the range of NFTs to query for. Value must be in the
* range [0; ownedNFTs-1]
*/
int64 start = 3;
/**
* Specifies the end index (exclusive) of the range of NFTs to query for. Value must be in the
* range (start; ownedNFTs]
*/
int64 end = 4;
}
message TokenGetNftInfosResponse {
/**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*/
ResponseHeader header = 1;
/**
* The Token with type NON_FUNGIBLE that this record is for
*/
TokenID tokenID = 2;
/**
* List of NFTs associated to the specified token
*/
repeated TokenNftInfo nfts = 3;
}