@lightprotocol/stateless.js - v0.22.1-alpha.1
    Preparing search index...

    Function createAccountWithLamports

    • Create compressed account with address and lamports

      Parameters

      • rpc: Rpc

        RPC to use

      • payer: Signer

        Payer of the transaction and initialization fees

      • seeds: Uint8Array<ArrayBufferLike>[]

        Seeds to derive the new account address

      • lamports: number | BN

        Number of compressed lamports to initialize the account with

      • programId: PublicKey

        Owner of the new account

      • OptionaladdressTreeInfo: AddressTreeInfo

        Optional address tree info. Defaults to a current shared address tree.

      • OptionaloutputStateTreeInfo: TreeInfo

        Optional output state tree. Defaults to a current shared state tree.

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      Returns Promise<string>

      Transaction signature