node_modules/@velas/solana-web3/lib/index.browser.esm.js
/**
   * Generate a transaction instruction that creates a new account
   */
Generate a transaction instruction that creates a new account
Generate a transaction instruction that creates a new account
static createAccount(params) {
    const type = SYSTEM_INSTRUCTION_LAYOUTS.Create;
    const data = encodeData(type, {
      lamports: params.lamports,
      space: params.space,
      programId: params.programId.toBuffer()
    });
    return new TransactionInstruction({
      keys: [{
        pubkey: params.fromPubkey,
        isSigner: true,
        isWritable: true
      }, {
        pubkey: params.newAccountPubkey,
        isSigner: true,
        isWritable: true
      }],
      programId: this.programId,
      data
    });
  }
static createAccount ( params ) { const type = SYSTEM_INSTRUCTION_LAYOUTS . Create ; const data = encodeData ( type , { lamports : params . lamports , space : params . space , programId : params . programId . toBuffer ( ) } ) ; return new TransactionInstruction ( { keys : [ { pubkey : params . fromPubkey , isSigner : true , isWritable : true } , { pubkey : params . newAccountPubkey , isSigner : true , isWritable : true } ] , programId : this . programId , data } ) ; }
Generate a transaction instruction that creates a new account
Generate a transaction instruction that creates a new account