Type Alias hedera::TokenFeeScheduleUpdateTransaction
source · pub type TokenFeeScheduleUpdateTransaction = Transaction<TokenFeeScheduleUpdateTransactionData>;
Expand description
At consensus, updates a token type’s fee schedule to the given list of custom fees.
If the target token type has no fee_schedule_key
, resolves to TokenHasNoFeeScheduleKey
.
Otherwise this transaction must be signed to the fee_schedule_key
, or the transaction will
resolve to InvalidSignature
.
If the custom_fees
list is empty, clears the fee schedule or resolves to
CustomScheduleAlreadyHasNoFees
if the fee schedule was already empty.
Aliased Type§
struct TokenFeeScheduleUpdateTransaction { /* private fields */ }
Implementations§
source§impl TokenFeeScheduleUpdateTransaction
impl TokenFeeScheduleUpdateTransaction
sourcepub fn get_token_id(&self) -> Option<TokenId>
pub fn get_token_id(&self) -> Option<TokenId>
Returns the ID of the token that’s being updated.
sourcepub fn token_id(&mut self, token_id: impl Into<TokenId>) -> &mut Self
pub fn token_id(&mut self, token_id: impl Into<TokenId>) -> &mut Self
Sets the ID of the token that’s being updated.
sourcepub fn get_custom_fees(&self) -> &[AnyCustomFee]
pub fn get_custom_fees(&self) -> &[AnyCustomFee]
Returns the new custom fees to be assessed during a transfer.
sourcepub fn custom_fees(
&mut self,
custom_fees: impl IntoIterator<Item = AnyCustomFee>
) -> &mut Self
pub fn custom_fees( &mut self, custom_fees: impl IntoIterator<Item = AnyCustomFee> ) -> &mut Self
Sets the new custom fees to be assessed during a transfer.