SystemProgram.nonceAdvance constructor

SystemProgram.nonceAdvance({
  1. required SolAddress authorizedPubkey,
  2. required SolAddress noncePubKey,
})

Advance nonce account system

Implementation

factory SystemProgram.nonceAdvance({
  /// Public key of the nonce authority
  required SolAddress authorizedPubkey,

  /// Nonce account
  required SolAddress noncePubKey,
}) {
  return SystemProgram(
      layout: const SystemAdvanceNonceLayout(),
      keys: [
        noncePubKey.toWritable(),
        SystemProgramConst.sysvarRecentBlockhashesPubkey.toReadOnly(),
        authorizedPubkey.toSigner()
      ],
      programId: SystemProgramConst.programId);
}