Skip to Content

@cfxdevkit/core


@cfxdevkit/core / DerivationOptions

Interface: DerivationOptions

Defined in: packages/core/src/wallet/types.ts:52

Options for deriving accounts from a mnemonic

Properties

accountType?

optional accountType: "standard" | "mining"

Defined in: packages/core/src/wallet/types.ts:64

Account type determines the derivation path:

  • ‘standard’ (default): m/44’/{coin}‘/0’/0/{index} - Regular user accounts
  • ‘mining’: m/44’/{coin}‘/1’/0/{index} - Mining/faucet accounts

coreNetworkId?

optional coreNetworkId: number

Defined in: packages/core/src/wallet/types.ts:58

Core Space network ID for address encoding (default: 2029 for local)


count

count: number

Defined in: packages/core/src/wallet/types.ts:54

Number of accounts to derive


startIndex?

optional startIndex: number

Defined in: packages/core/src/wallet/types.ts:56

Starting index (default: 0)