pub fn update_credentials(
    num_sigs: u32,
    sender: AccountAddress,
    nonce: Nonce,
    expiry: TransactionTime,
    num_existing_credentials: u16,
    new_credentials: AccountCredentialsMap,
    remove_credentials: Vec<CredentialRegistrationID>,
    new_threshold: AccountThreshold
) -> PreAccountTransaction
Expand description

Construct a transaction to update credentials on an account. The transaction specific arguments are

  • num_existing_credentials - the number of existing credentials on the account. This will affect the estimated transaction cost. It is safe to over-approximate this.
  • new_credentials - the new credentials to be deployed to the account with the desired indices. The credential with index 0 cannot be replaced.
  • remove_credentials - the list of credentials, by credId’s, to be removed
  • new_threshold - the new account threshold.