AccountMetaListExt extension

on

Methods

getNumReadonlyNonSigners() int

Available on List<AccountMeta>, provided by the AccountMetaListExt extension

Counts the number of accounts that are non signers and readonly.
getNumReadonlySigners() int

Available on List<AccountMeta>, provided by the AccountMetaListExt extension

Counts the number of accounts that are signers and readonly.
getNumSigners() int

Available on List<AccountMeta>, provided by the AccountMetaListExt extension

Counts the number of accounts that are signers.
indexOfPubKey(Ed25519HDPublicKey pubKey) int

Available on List<AccountMeta>, provided by the AccountMetaListExt extension

Find an account with a matching pubKey.
toIndexesMap() Map<Ed25519HDPublicKey, int>

Available on List<AccountMeta>, provided by the AccountMetaListExt extension

unique() List<AccountMeta>

Available on List<AccountMeta>, provided by the AccountMetaListExt extension

Remove all duplicate accounts, meaning accounts having the same public key. Signers and/or writeable accounts are picked over non-signers and non-writeable.