PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@near-js/accounts/lib/commonjs
Просмотр файла: account_creator.d.ts
import { PublicKey } from '@near-js/crypto';
import { Connection } from './connection';
import { Account } from './account';
/**
* Account creator provides an interface for implementations to actually create accounts
*/
export declare abstract class AccountCreator {
abstract createAccount(newAccountId: string, publicKey: PublicKey): Promise<void>;
}
export declare class LocalAccountCreator extends AccountCreator {
readonly masterAccount: Account;
readonly initialBalance: bigint;
constructor(masterAccount: Account, initialBalance: bigint);
/**
* Creates an account using a masterAccount, meaning the new account is created from an existing account
* @param newAccountId The name of the NEAR account to be created
* @param publicKey The public key from the masterAccount used to create this account
* @returns {Promise<void>}
*/
createAccount(newAccountId: string, publicKey: PublicKey): Promise<void>;
}
export declare class UrlAccountCreator extends AccountCreator {
readonly connection: Connection;
readonly helperUrl: string;
constructor(connection: Connection, helperUrl: string);
/**
* Creates an account using a helperUrl
* This is [hosted here](https://helper.nearprotocol.com) or set up locally with the [near-contract-helper](https://github.com/nearprotocol/near-contract-helper) repository
* @param newAccountId The name of the NEAR account to be created
* @param publicKey The public key from the masterAccount used to create this account
* @returns {Promise<void>}
*/
createAccount(newAccountId: string, publicKey: PublicKey): Promise<void>;
}
//# sourceMappingURL=account_creator.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!