Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface AssessedCustomFeeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
AssessedCustomFee,AssessedCustomFee.Builder
@Generated
public interface AssessedCustomFeeOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong* An amount of tokens assessed for this custom fee.getEffectivePayerAccountId(int index) * An account that provided the tokens assessed as a fee.int* An account that provided the tokens assessed as a fee.* An account that provided the tokens assessed as a fee.* An account that received the fee assessed.* The token transferred to satisfy this fee.boolean* An account that received the fee assessed.boolean* The token transferred to satisfy this fee.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getAmount
long getAmount()* An amount of tokens assessed for this custom fee. <p> This shall be expressed in units of 10<sup>-decimals</sup> tokens.
int64 amount = 1;- Returns:
- The amount.
-
hasTokenId
boolean hasTokenId()* The token transferred to satisfy this fee. <p> If the token transferred is HBAR, this field SHALL NOT be set.
.proto.TokenID token_id = 2;- Returns:
- Whether the tokenId field is set.
-
getTokenId
TokenID getTokenId()* The token transferred to satisfy this fee. <p> If the token transferred is HBAR, this field SHALL NOT be set.
.proto.TokenID token_id = 2;- Returns:
- The tokenId.
-
hasFeeCollectorAccountId
boolean hasFeeCollectorAccountId()* An account that received the fee assessed. <p> This SHALL NOT be the sender or receiver of the original cryptoTransfer transaction.
.proto.AccountID fee_collector_account_id = 3;- Returns:
- Whether the feeCollectorAccountId field is set.
-
getFeeCollectorAccountId
AccountID getFeeCollectorAccountId()* An account that received the fee assessed. <p> This SHALL NOT be the sender or receiver of the original cryptoTransfer transaction.
.proto.AccountID fee_collector_account_id = 3;- Returns:
- The feeCollectorAccountId.
-
getEffectivePayerAccountIdList
* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4; -
getEffectivePayerAccountId
* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4; -
getEffectivePayerAccountIdCount
int getEffectivePayerAccountIdCount()* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4;
-