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

source

pub fn get_token_id(&self) -> Option<TokenId>

Returns the ID of the token that’s being updated.

source

pub fn token_id(&mut self, token_id: impl Into<TokenId>) -> &mut Self

Sets the ID of the token that’s being updated.

source

pub fn get_custom_fees(&self) -> &[AnyCustomFee]

Returns the new custom fees to be assessed during a transfer.

source

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.