Skip to content

getNetworkPrefix

function getNetworkPrefix(network: Network): "f" | "t";

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

Get network prefix from network

Parameters

ParameterType
networkNetwork

Returns

"f" | "t"

Example

import {
function getNetworkPrefix(network: import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network): "f" | "t"

Get network prefix from network

@paramnetwork

@example

import { getNetworkPrefix } from 'iso-filecoin/utils'
const prefix = getNetworkPrefix('mainnet')
// => 'f'

getNetworkPrefix
} from 'iso-filecoin/utils'
const
const prefix: "f" | "t"
prefix
=
function getNetworkPrefix(network: import("/opt/buildhome/repo/packages/iso-filecoin/dist/src/types").Network): "f" | "t"

Get network prefix from network

@paramnetwork

@example

import { getNetworkPrefix } from 'iso-filecoin/utils'
const prefix = getNetworkPrefix('mainnet')
// => 'f'

getNetworkPrefix
('mainnet')
// => 'f'