SystemProgram.nonceAdvance constructor
SystemProgram.nonceAdvance({
- required SolAddress authorizedPubkey,
- 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);
}