@aleph-sdk/monorepo
    Preparing search index...

    Function newAccount

    • Creates a new Avalanche account using a randomly generated privateKey

      Parameters

      • chain: ChainType = ChainType.C_CHAIN

        Avalanche chain type: c-chain | x-chain

      • Optionalhrp: string

        Avalanche human-readable part: avax | fuji | cascade

      Returns Promise<{ account: AvalancheAccount; privateKey: string }>