pathFromNetwork
pathFromNetwork(
network
,index?
):string
Defined in: packages/iso-filecoin/src/utils.js:114
Derivation path from chain
Parameters
Section titled “Parameters”Parameter | Type | Default value | Description |
---|---|---|---|
network | Network | undefined | - |
index? | number | 0 | Account index (default 0) |
Returns
Section titled “Returns”string
Example
Section titled “Example”import { function pathFromNetwork(network: import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network, index?: number): string
Derivation path from chain
pathFromNetwork } from 'iso-filecoin/utils'
const const path: string
path = function pathFromNetwork(network: import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network, index?: number): string
Derivation path from chain
pathFromNetwork('mainnet')// => 'm/44'/461'/0'/0/0'