getNetworkFromPath
getNetworkFromPath(
path
):Network
Defined in: packages/iso-filecoin/src/utils.js:72
Returns the third position from derivation path
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
path | string | path to parse |
Returns
Section titled “Returns”Example
Section titled “Example”import { function getNetworkFromPath(path: string): import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network
Returns the third position from derivation path
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
getNetworkFromPath("m/44'/461'/0'/0/0")// => 'testnet'