pub type TokenRevokeKycTransaction = Transaction<TokenRevokeKycTransactionData>;
Expand description

Revokes KYC from the account for the given token.

Must be signed by the Token’s kycKey.

Once executed the Account is marked as KYC Revoked.

  • If the provided account is not found, the transaction will resolve to INVALID_ACCOUNT_ID.
  • If the provided account has been deleted, the transaction will resolve to ACCOUNT_DELETED.
  • If the provided token is not found, the transaction will resolve to INVALID_TOKEN_ID.
  • If the provided token has been deleted, the transaction will resolve to TOKEN_WAS_DELETED.
  • If an Association between the provided token and account is not found, the transaction will resolve to TOKEN_NOT_ASSOCIATED_TO_ACCOUNT.
  • If no KYC Key is defined, the transaction will resolve to TOKEN_HAS_NO_KYC_KEY.

Aliased Type§

struct TokenRevokeKycTransaction { /* private fields */ }

Implementations§

source§

impl TokenRevokeKycTransaction

source

pub fn get_account_id(&self) -> Option<AccountId>

Returns the account to have their KYC revoked.

source

pub fn account_id(&mut self, account_id: AccountId) -> &mut Self

Sets the account to have their KYC revoked.

source

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

Returns the token for which the account will have their KYC revoked.

source

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

Sets the token for which this account will have their KYC revoked.