Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface TokenTransferListOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
TokenTransferList,TokenTransferList.Builder
@Generated
public interface TokenTransferListOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.UInt32Value* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have.getNftTransfers(int index) * A list of NftTransfers.int* A list of NftTransfers.* A list of NftTransfers.getToken()* A token identifier.<br/> This is the token to be transferred.getTransfers(int index) * A list of account amounts.int* A list of account amounts.* A list of account amounts.boolean* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have.booleanhasToken()* A token identifier.<br/> This is the token to be transferred.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasToken
boolean hasToken()* A token identifier.<br/> This is the token to be transferred.
.proto.TokenID token = 1;- Returns:
- Whether the token field is set.
-
getToken
TokenID getToken()* A token identifier.<br/> This is the token to be transferred.
.proto.TokenID token = 1;- Returns:
- The token.
-
getTransfersList
List<AccountAmount> getTransfersList()* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2; -
getTransfers
* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2; -
getTransfersCount
int getTransfersCount()* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2; -
getNftTransfersList
List<NftTransfer> getNftTransfersList()* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3; -
getNftTransfers
* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3; -
getNftTransfersCount
int getNftTransfersCount()* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3; -
hasExpectedDecimals
boolean hasExpectedDecimals()* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have. <p> The transfer SHALL fail with response code `UNEXPECTED_TOKEN_DECIMALS` if this is set and the actual decimals specified for the `Token` differ from this value.<br/> If `nftTransfers` is set, then this value SHOULD NOT be set.
.google.protobuf.UInt32Value expected_decimals = 4;- Returns:
- Whether the expectedDecimals field is set.
-
getExpectedDecimals
com.google.protobuf.UInt32Value getExpectedDecimals()* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have. <p> The transfer SHALL fail with response code `UNEXPECTED_TOKEN_DECIMALS` if this is set and the actual decimals specified for the `Token` differ from this value.<br/> If `nftTransfers` is set, then this value SHOULD NOT be set.
.google.protobuf.UInt32Value expected_decimals = 4;- Returns:
- The expectedDecimals.
-