Class: UrlAccountCreator
account_creator.UrlAccountCreator
Account creator provides an interface for implementations to actually create accounts
Hierarchy
↳
UrlAccountCreator
Constructors
constructor
new UrlAccountCreator(connection, helperUrl)
Parameters
| Name | Type |
|---|---|
connection | Connection |
helperUrl | string |
Overrides
Defined in
Properties
connection
Readonly connection: Connection
Defined in
helperUrl
Readonly helperUrl: string
Defined in
Methods
createAccount
createAccount(newAccountId, publicKey): Promise<void>
Creates an account using a helperUrl This is hosted here or set up locally with the near-contract-helper repository
Parameters
| Name | Type | Description |
|---|---|---|
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>