@aleph-sdk/monorepo
Preparing search index...
avalanche/src
newAccount
Function newAccount
newAccount
(
chain
?:
ChainType
,
)
:
Promise
<
{
account
:
AvalancheAccount
;
privateKey
:
string
}
>
Creates a new Avalanche account using a randomly generated privateKey
Parameters
chain
:
ChainType
= ChainType.C_CHAIN
Returns
Promise
<
{
account
:
AvalancheAccount
;
privateKey
:
string
}
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@aleph-sdk/monorepo
Loading...
Creates a new Avalanche account using a randomly generated privateKey