Skip to content

getNetworkFromPath

getNetworkFromPath(path): Network

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

Returns the third position from derivation path

ParameterTypeDescription
pathstringpath to parse

Network

import {
function getNetworkFromPath(path: string): import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network

Returns the third position from derivation path

@parampath - path to parse

@returns

@example

import { getNetworkFromPath } from 'iso-filecoin/utils'
const network = getNetworkFromPath("m/44'/461'/0'/0/0")
// => 'testnet'

getNetworkFromPath
} from 'iso-filecoin/utils'
const
const network: Network
network
=
function getNetworkFromPath(path: string): import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network

Returns the third position from derivation path

@parampath - path to parse

@returns

@example

import { getNetworkFromPath } from 'iso-filecoin/utils'
const network = getNetworkFromPath("m/44'/461'/0'/0/0")
// => 'testnet'

getNetworkFromPath
("m/44'/461'/0'/0/0")
// => 'testnet'