Type Alias hedera::TokenGrantKycTransaction

source ·
pub type TokenGrantKycTransaction = Transaction<TokenGrantKycTransactionData>;
Expand description

Grants KYC to the account for the given token. Must be signed by the Token’s kycKey.

Once executed the Account is marked as KYC Granted.

  • 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 TokenGrantKycTransaction { /* private fields */ }

Implementations§

source§

impl TokenGrantKycTransaction

source

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

Returns the account to be granted KYC.

source

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

Sets the account to be granted KYC.

source

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

Returns the token for which the account will be granted KYC.

source

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

Sets the token for which the account will be granted KYC.