AccountMetaListExt extension
- on
Methods
-
getNumReadonlyNonSigners(
) → int - Counts the number of accounts that are non signers and readonly.
-
getNumReadonlySigners(
) → int - Counts the number of accounts that are signers and readonly.
-
getNumSigners(
) → int - Counts the number of accounts that are signers.
-
indexOfPubKey(
Ed25519HDPublicKey pubKey) → int -
Find an account with a matching
pubKey
. -
toIndexesMap(
) → Map< Ed25519HDPublicKey, int> -
unique(
) → List< AccountMeta> - Remove all duplicate accounts, meaning accounts having the same public key. Signers and/or writeable accounts are picked over non-signers and non-writeable.