Type Alias CreateAccountParams

CreateAccountParams: {
    fromPubkey: PublicKey;
    lamports: number;
    newAccountPubkey: PublicKey;
    programId: PublicKey;
    space: number;
}

Create account system transaction params

Type declaration

  • fromPubkey: PublicKey

    The account that will transfer lamports to the created account

  • lamports: number

    Amount of lamports to transfer to the created account

  • newAccountPubkey: PublicKey

    Public key of the created account

  • programId: PublicKey

    Public key of the program to assign as the owner of the created account

  • space: number

    Amount of space in bytes to allocate to the created account