Account creator provides an interface for implementations to actually create accounts

Hierarchy (view full)

Constructors

Properties

initialBalance: bigint
masterAccount: Account

Methods

  • Creates an account using a masterAccount, meaning the new account is created from an existing account

    Parameters

    • newAccountId: string

      The name of the NEAR account to be created

    • publicKey: PublicKey

      The public key from the masterAccount used to create this account

    Returns Promise<void>