node_modules/@velas/solana-web3/lib/index.browser.esm.js
/**
   * Generate an instruction to initialize a Nonce account
   */
Generate an instruction to initialize a Nonce account
Generate an instruction to initialize a Nonce account
static nonceInitialize(params) {
    const type = SYSTEM_INSTRUCTION_LAYOUTS.InitializeNonceAccount;
    const data = encodeData(type, {
      authorized: params.authorizedPubkey.toBuffer()
    });
    const instructionData = {
      keys: [{
        pubkey: params.noncePubkey,
        isSigner: false,
        isWritable: true
      }, {
        pubkey: SYSVAR_RECENT_BLOCKHASHES_PUBKEY,
        isSigner: false,
        isWritable: false
      }, {
        pubkey: SYSVAR_RENT_PUBKEY,
        isSigner: false,
        isWritable: false
      }],
      programId: this.programId,
      data
    };
    return new TransactionInstruction(instructionData);
  }
static nonceInitialize ( params ) { const type = SYSTEM_INSTRUCTION_LAYOUTS . InitializeNonceAccount ; const data = encodeData ( type , { authorized : params . authorizedPubkey . toBuffer ( ) } ) ; const instructionData = { keys : [ { pubkey : params . noncePubkey , isSigner : false , isWritable : true } , { pubkey : SYSVAR_RECENT_BLOCKHASHES_PUBKEY , isSigner : false , isWritable : false } , { pubkey : SYSVAR_RENT_PUBKEY , isSigner : false , isWritable : false } ] , programId : this . programId , data } ; return new TransactionInstruction ( instructionData ) ; }
Generate an instruction to initialize a Nonce account
Generate an instruction to initialize a Nonce account