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

    Function createAccount

    • Create compressed account with address

      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

      • 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 fetching a current shared state tree.

      • OptionalconfirmOptions: ConfirmOptions

        Options for confirming the transaction

      Returns Promise<string>

      Transaction signature