AccountMeta.readonly constructor

AccountMeta.readonly({
  1. required Ed25519HDPublicKey pubKey,
  2. required bool isSigner,
})

Constructs a readonly account that is not signer has pubKey public key. To make it a signing account set isSigner to true.

Implementation

factory AccountMeta.readonly({
  required Ed25519HDPublicKey pubKey,
  required bool isSigner,
}) =>
    AccountMeta(
      pubKey: pubKey,
      isWriteable: false,
      isSigner: isSigner,
    );