Skip to main content
Version: near-api-js@1.1.0

Class: UrlAccountCreator

account_creator.UrlAccountCreator

Account creator provides an interface for implementations to actually create accounts

Hierarchy​

Constructors​

constructor​

new UrlAccountCreator(connection, helperUrl)

Parameters​

NameType
connectionConnection
helperUrlstring

Overrides​

AccountCreator.constructor

Defined in​

account_creator.ts:39

Properties​

connection​

Readonly connection: Connection

Defined in​

account_creator.ts:36


helperUrl​

Readonly helperUrl: string

Defined in​

account_creator.ts:37

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​

NameTypeDescription
newAccountIdstringThe name of the NEAR account to be created
publicKeyPublicKeyThe public key from the masterAccount used to create this account

Returns​

Promise<void>

Overrides​

AccountCreator.createAccount

Defined in​

account_creator.ts:52