getNetworkPrefix
function getNetworkPrefix(network: Network): "f" | "t";
Defined in: packages/iso-filecoin/src/utils.js:40
Get network prefix from network
Parameters
Parameter | Type |
---|---|
network | Network |
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
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
getNetworkPrefix('mainnet')// => 'f'