Type alias CreateAccountBuilderParams

CreateAccountBuilderParams: {
    space: number;
    program?: undefined | PublicKey;
    lamports?: undefined | SolAmount;
    newAccount?: undefined | Signer;
    instructionKey?: undefined | string;
}

Type declaration

  • space: number

    The space in bytes of the account to create.

  • Optional program?: undefined | PublicKey

    The address of the program that should own the new account.

    Default Value

    Defaults to the System Program.

  • Optional lamports?: undefined | SolAmount

    The initial balance of the account.

    Default Value

    By default, this will be the minumum amount of lamports required for the account to be rent-exempt. i.e. it will be equal to await metaplex.rpc().getRent(space).

  • Optional newAccount?: undefined | Signer

    The new account as a Signer since it will be mutated on-chain.

    Default Value

    Defaults to a new generated Keypair, i.e. Keypair.generate()

  • Optional instructionKey?: undefined | string

    A key to distinguish the instruction that creates the account.

Generated using TypeDoc