HdPath: readonly Slip10RawIndex[]

An array of raw SLIP10 indices.

This can be constructed via string parsing:

import { stringToPath } from "@cosmjs/crypto";

const path = stringToPath("m/0'/1/2'/2/1000000000");

or manually:

import { HdPath, Slip10RawIndex } from "@cosmjs/crypto";

// m/0'/1/2'/2/1000000000
const path: HdPath = [
Slip10RawIndex.hardened(0),
Slip10RawIndex.normal(1),
Slip10RawIndex.hardened(2),
Slip10RawIndex.normal(2),
Slip10RawIndex.normal(1000000000),
];

Generated using TypeDoc