toReadOnly method

AccountMeta toReadOnly()

Create an AccountMeta instance indicating the account is neither a signer nor writable.

Implementation

AccountMeta toReadOnly() {
  return AccountMeta(publicKey: this, isSigner: false, isWritable: false);
}