Skip to content

pathFromNetwork

function pathFromNetwork(network: Network, index?: number): string;

Defined in: packages/iso-filecoin/src/utils.js:114

Derivation path from chain

Parameters

ParameterTypeDefault valueDescription
networkNetworkundefined-
index?number0Account index (default 0)

Returns

string

Example

import {
function pathFromNetwork(network: import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network, index?: number): string

Derivation path from chain

@paramnetwork

@paramindex - Account index (default 0)

@example

import { pathFromNetwork } from 'iso-filecoin/utils'
const path = pathFromNetwork('mainnet')
// => 'm/44'/461'/0'/0/0'

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

@paramnetwork

@paramindex - Account index (default 0)

@example

import { pathFromNetwork } from 'iso-filecoin/utils'
const path = pathFromNetwork('mainnet')
// => 'm/44'/461'/0'/0/0'

pathFromNetwork
('mainnet')
// => 'm/44'/461'/0'/0/0'